Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Needed an autorelease pool around the NSText allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 11, 2007
1 parent bdd3675 commit 218e1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -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);
Expand Down

0 comments on commit 218e1dd

Please sign in to comment.