# HG changeset patch # User Sam Lantinga # Date 1184165068 0 # Node ID 243bc7ae5a21f45cd2200d2bffe39000db62c4e7 # Parent 13cf2d5eda8687482487bfb9cfc12e8d8e7d9821 Needed an autorelease pool around the NSText allocation diff -r 13cf2d5eda86 -r 243bc7ae5a21 src/video/cocoa/SDL_cocoakeyboard.m --- a/src/video/cocoa/SDL_cocoakeyboard.m Wed Jul 11 08:09:20 2007 +0000 +++ b/src/video/cocoa/SDL_cocoakeyboard.m Wed Jul 11 14:44:28 2007 +0000 @@ -511,10 +511,13 @@ { 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);