diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index 6b4eca461..00ee08f32 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -754,6 +754,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window) } @catch (NSException *e) { SDL_SetError("%s", [[e reason] UTF8String]); + [pool release]; return -1; } [nswindow setBackgroundColor:[NSColor blackColor]];