Fixed pool memory leak
authorSam Lantinga <slouken@libsdl.org>
Sun, 10 Nov 2013 19:19:44 -0800
changeset 7948 64e133a8b15e
parent 7947 f5f51b3c4dd2
child 7949 7eac62311176
Fixed pool memory leak
src/video/cocoa/SDL_cocoawindow.m
--- a/src/video/cocoa/SDL_cocoawindow.m	Sun Nov 10 17:56:07 2013 -0800
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Nov 10 19:19:44 2013 -0800
@@ -754,6 +754,7 @@
     }
     @catch (NSException *e) {
         SDL_SetError("%s", [[e reason] UTF8String]);
+        [pool release];
         return -1;
     }
     [nswindow setBackgroundColor:[NSColor blackColor]];