From 893afbaf3b86a0a3052cfdaf68549aae9eade5d7 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 10 Nov 2013 19:19:44 -0800 Subject: [PATCH] Fixed pool memory leak --- src/video/cocoa/SDL_cocoawindow.m | 1 + 1 file changed, 1 insertion(+) 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]];