summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSubwindows.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-12-07 02:02:44 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-12-07 02:02:44 (GMT)
commit6aad9c9b454d5334c3e36cd2bf623dae8369defe (patch)
tree740de6d2fe3af13e22213ec4ef7e027a3d1d93ee /macosx/tkMacOSXSubwindows.c
parent3c354d91432f5a951efb12e957299cacdeafb897 (diff)
downloadtk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.zip
tk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.tar.gz
tk-6aad9c9b454d5334c3e36cd2bf623dae8369defe.tar.bz2
Fix for zombie windows on El Capitan/OS X 10.11; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXSubwindows.c')
-rw-r--r--macosx/tkMacOSXSubwindows.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index 72ef39c..d23ba85 100644
--- a/macosx/tkMacOSXSubwindows.c
+++ b/macosx/tkMacOSXSubwindows.c
@@ -318,7 +318,7 @@ XResizeWindow(
unsigned int height)
{
MacDrawable *macWin = (MacDrawable *) window;
-
+ NSAutoreleasePool *pool= [NSAutoreleasePool new];
display->request++;
if (Tk_IsTopLevel(macWin->winPtr) && !Tk_IsEmbedded(macWin->winPtr)) {
NSWindow *w = macWin->winPtr->wmInfoPtr->window;
@@ -333,6 +333,7 @@ XResizeWindow(
} else {
MoveResizeWindow(macWin);
}
+ [pool drain];
}
/*