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