From: <kak...@us...> - 2009-08-07 23:42:54
|
Revision: 11446 http://amsn.svn.sourceforge.net/amsn/?rev=11446&view=rev Author: kakaroto Date: 2009-08-07 23:42:40 +0000 (Fri, 07 Aug 2009) Log Message: ----------- Fix autorelease pool for cocoa so we don't get unclosable cam windows Modified Paths: -------------- trunk/amsn/utils/farsight/src/tcl_farsight.c trunk/amsn/utils/farsight/tcl_farsight.dylib Modified: trunk/amsn/utils/farsight/src/tcl_farsight.c =================================================================== --- trunk/amsn/utils/farsight/src/tcl_farsight.c 2009-08-07 23:39:39 UTC (rev 11445) +++ trunk/amsn/utils/farsight/src/tcl_farsight.c 2009-08-07 23:42:40 UTC (rev 11446) @@ -291,6 +291,7 @@ } if (cocoa_pool != NULL) { [cocoa_pool release]; + cocoa_pool = NULL; } #endif } @@ -1794,9 +1795,8 @@ [win setContentView:nsview]; + [win makeKeyAndOrderFront:NSApp]; [win autorelease]; - [NSApplication sharedApplication]; - [win makeKeyAndOrderFront:NSApp]; [NSApp finishLaunching]; [NSApp setDelegate:[[FarsightAppDelegate alloc] init]]; Modified: trunk/amsn/utils/farsight/tcl_farsight.dylib =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |