diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 03:21:25 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 03:21:25 (GMT) |
commit | 21602ceee3b372f193284c9db05c70f3ac411006 (patch) | |
tree | 0256db3818367f8986b6872a5feae4c23cbf1f4f /macosx/tkMacOSXEvent.c | |
parent | 6c84308e2d7ba444a4a384254d80b3c5e8b1a30b (diff) | |
download | tk-21602ceee3b372f193284c9db05c70f3ac411006.zip tk-21602ceee3b372f193284c9db05c70f3ac411006.tar.gz tk-21602ceee3b372f193284c9db05c70f3ac411006.tar.bz2 |
Final cleanup of zombie windows in Cocoa
Diffstat (limited to 'macosx/tkMacOSXEvent.c')
-rw-r--r-- | macosx/tkMacOSXEvent.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/macosx/tkMacOSXEvent.c b/macosx/tkMacOSXEvent.c index 365dc9b..db13249 100644 --- a/macosx/tkMacOSXEvent.c +++ b/macosx/tkMacOSXEvent.c @@ -133,13 +133,10 @@ TkMacOSXFlushWindows(void) */ NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSArray *macWindows = [NSApp orderedWindows]; - NSInteger windowCount = [macWindows count]; - if(windowCount) { - for (NSWindow *w in macWindows) { - if (TkMacOSXGetXWindow(w)) { - [w flushWindow]; - } + for (NSWindow *w in macWindows) { + if (TkMacOSXGetXWindow(w)) { + [w flushWindow]; } } [pool drain]; |