mirror of
https://github.com/yawut/SDL.git
synced 2026-09-14 12:06:26 -05:00
Needed an autorelease pool around the NSText allocation
This commit is contained in:
@@ -511,10 +511,13 @@ Cocoa_InitKeyboard(_THIS)
|
||||
{
|
||||
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
||||
SDL_Keyboard keyboard;
|
||||
NSAutoreleasePool *pool;
|
||||
|
||||
InitKeymap(data->keymap);
|
||||
|
||||
pool = [[NSAutoreleasePool alloc] init];
|
||||
data->fieldEdit = [[NSTextView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
|
||||
[pool release];
|
||||
|
||||
SDL_zero(keyboard);
|
||||
data->keyboard = SDL_AddKeyboard(&keyboard, -1);
|
||||
|
||||
Reference in New Issue
Block a user