Autorelease the AtomController when window closes. This will release window.

This commit is contained in:
Corey Johnson & Nathan Sobo 2012-08-24 17:05:41 -06:00
parent 3a397a4ed4
commit 3f3247d443

View File

@ -72,8 +72,7 @@
// Clean ourselves up after clearing the stack of anything that might have the window on it.
- (BOOL)windowShouldClose:(id)window {
_clientHandler = NULL;
[window autorelease];
[self autorelease];
return YES;
}