Needed an autorelease pool around the NSText allocation
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402486
This commit is contained in:
parent
f7ff123cf8
commit
b9e09cec0b
1 changed files with 3 additions and 0 deletions
|
@ -511,10 +511,13 @@ Cocoa_InitKeyboard(_THIS)
|
||||||
{
|
{
|
||||||
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
|
||||||
SDL_Keyboard keyboard;
|
SDL_Keyboard keyboard;
|
||||||
|
NSAutoreleasePool *pool;
|
||||||
|
|
||||||
InitKeymap(data->keymap);
|
InitKeymap(data->keymap);
|
||||||
|
|
||||||
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
data->fieldEdit = [[NSTextView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
|
data->fieldEdit = [[NSTextView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
|
||||||
|
[pool release];
|
||||||
|
|
||||||
SDL_zero(keyboard);
|
SDL_zero(keyboard);
|
||||||
data->keyboard = SDL_AddKeyboard(&keyboard, -1);
|
data->keyboard = SDL_AddKeyboard(&keyboard, -1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue