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 | 78fdb8a758d9a6a2fd31d8bb222186e26dc338cc (patch) | |
tree | 0256db3818367f8986b6872a5feae4c23cbf1f4f /macosx/tkMacOSXEvent.c | |
parent | 65407b9a99817de6b8ccf97f8397604a4904139c (diff) | |
download | tk-78fdb8a758d9a6a2fd31d8bb222186e26dc338cc.zip tk-78fdb8a758d9a6a2fd31d8bb222186e26dc338cc.tar.gz tk-78fdb8a758d9a6a2fd31d8bb222186e26dc338cc.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]; |