diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 00:50:16 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-03-21 00:50:16 (GMT) |
commit | 9787a9f42d575fd80d370323e6fe37290f5609cd (patch) | |
tree | 523d52d04168fdbaa26d257a98579ba2a5e37713 /macosx/tkMacOSXWm.c | |
parent | 9df910230823bd6be37562f8f344258c54add11f (diff) | |
download | tk-9787a9f42d575fd80d370323e6fe37290f5609cd.zip tk-9787a9f42d575fd80d370323e6fe37290f5609cd.tar.gz tk-9787a9f42d575fd80d370323e6fe37290f5609cd.tar.bz2 |
Remove garbage collections calls as GC is no longer supported on OS X; thanks to Marc Culler for patch
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 91c6858..23b107f 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -794,8 +794,9 @@ TkWmDeadWindow( if (winPtr->window) { ((MacDrawable *) winPtr->window)->view = nil; } - TkMacOSXMakeCollectableAndRelease(wmPtr->window); - /* Activate the highest window left on the screen. */ + [window release]; + wmPtr->window = NULL; + /* Activate the highest window left on the screen. */ NSArray *windows = [NSApp orderedWindows]; NSWindow *front = [windows objectAtIndex:0]; if ( front && [front canBecomeKeyWindow] ) { @@ -5426,7 +5427,6 @@ TkMacOSXMakeRealWindowExist( if (!window) { Tcl_Panic("couldn't allocate new Mac window"); } - TkMacOSXMakeUncollectable(window); TKContentView *contentView = [[TKContentView alloc] initWithFrame:NSZeroRect]; [window setContentView:contentView]; |