Fixed pool memory leak

This commit is contained in:
Sam Lantinga 2013-11-10 19:19:44 -08:00
parent b30e396ba1
commit 893afbaf3b
1 changed files with 1 additions and 0 deletions

View File

@ -754,6 +754,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
} }
@catch (NSException *e) { @catch (NSException *e) {
SDL_SetError("%s", [[e reason] UTF8String]); SDL_SetError("%s", [[e reason] UTF8String]);
[pool release];
return -1; return -1;
} }
[nswindow setBackgroundColor:[NSColor blackColor]]; [nswindow setBackgroundColor:[NSColor blackColor]];