diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 03:22:06 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 03:22:06 (GMT) |
commit | 560374fe1a29641deeddc868587a06358a2ec249 (patch) | |
tree | eba7c34d41004685c5f35f2f9fb25e82268dcd1e /macosx | |
parent | dd308b3850e1bff0ee3fecbb87bdf6f386337e41 (diff) | |
download | tk-560374fe1a29641deeddc868587a06358a2ec249.zip tk-560374fe1a29641deeddc868587a06358a2ec249.tar.gz tk-560374fe1a29641deeddc868587a06358a2ec249.tar.bz2 |
Final cleanup of zombie windows in Cocoa
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 5cec236..82de883 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -807,6 +807,7 @@ TkWmDeadWindow( NSWindow *window = wmPtr->window; if (window && !Tk_IsEmbedded(winPtr) ) { + NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSWindow *parent = [window parentWindow]; if (parent) { [parent removeChildWindow:window]; @@ -826,6 +827,7 @@ TkWmDeadWindow( [front makeKeyAndOrderFront:NSApp]; } } + [pool drain]; } ckfree(wmPtr); winPtr->wmInfoPtr = NULL; |