summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-03-21 03:22:06 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-03-21 03:22:06 (GMT)
commitd7eabeeabfcbb8922d5166c4bde328f334e25a04 (patch)
treef1ef2a9142203962e3fa7eb90a21aed1915a984a
parentc427309710ec8c1a81ab3b4194bb0d70969dcb7f (diff)
downloadtk-d7eabeeabfcbb8922d5166c4bde328f334e25a04.zip
tk-d7eabeeabfcbb8922d5166c4bde328f334e25a04.tar.gz
tk-d7eabeeabfcbb8922d5166c4bde328f334e25a04.tar.bz2
Final cleanup of zombie windows in Cocoa
-rw-r--r--macosx/tkMacOSXWm.c2
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;