mirror of https://github.com/encounter/SDL.git
Fixed pool memory leak
This commit is contained in:
parent
b30e396ba1
commit
893afbaf3b
|
@ -754,6 +754,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
|
||||||
}
|
}
|
||||||
@catch (NSException *e) {
|
@catch (NSException *e) {
|
||||||
SDL_SetError("%s", [[e reason] UTF8String]);
|
SDL_SetError("%s", [[e reason] UTF8String]);
|
||||||
|
[pool release];
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
[nswindow setBackgroundColor:[NSColor blackColor]];
|
[nswindow setBackgroundColor:[NSColor blackColor]];
|
||||||
|
|
Loading…
Reference in New Issue