Explorar o código

Fixed pool memory leak

Sam Lantinga %!s(int64=12) %!d(string=hai) anos
pai
achega
893afbaf3b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/video/cocoa/SDL_cocoawindow.m

+ 1 - 0
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]];