Skip to content

Commit

Permalink
Fix [ba956c8ff7]: Aqua: TIP 655 use-after-free.
Browse files Browse the repository at this point in the history
  • Loading branch information
fvogelnew1 committed May 3, 2023
1 parent f5c88a9 commit 368221a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion macosx/tkMacOSXWm.c
Original file line number Diff line number Diff line change
Expand Up @@ -6698,7 +6698,6 @@ TkMacOSXMakeRealWindowExist(
if (hPtr) {
tabbingId = Tcl_GetHashValue(hPtr);
Tcl_DeleteHashEntry(hPtr);
ckfree(tabbingId);
}
hPtr = Tcl_FindHashEntry(&pathnameToTabbingMode, Tk_PathName(winPtr));
if (hPtr) {
Expand Down Expand Up @@ -6763,6 +6762,9 @@ TkMacOSXMakeRealWindowExist(
[window setTabbingIdentifier: identifier];
[window setTabbingMode: tabbingMode];
#endif
if (tabbingId) {
ckfree(tabbingId);
}
TKContentView *contentView = [[TKContentView alloc]
initWithFrame:NSZeroRect];
[window setContentView:contentView];
Expand Down

0 comments on commit 368221a

Please sign in to comment.