Mercurial > sdl-ios-xcode
comparison src/video/cocoa/SDL_cocoakeyboard.m @ 2270:d5a11262f067
Date: Sun, 19 Aug 2007 18:29:28 +0200
From: Christian Walther
Subject: Re: SDL 1.3 keyboard plan
> 2007-08-18 19:15:51.454 checkkeys[5795] *** _NSAutoreleaseNoPool():
> Object 0x532750 of class NSSelectionArray autoreleased with no pool
> in place - just leaking
This is fixed by the attached patch.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Aug 2007 16:36:51 +0000 |
parents | 4baee598306d |
children | a25bc0f79557 |
comparison
equal
deleted
inserted
replaced
2269:5b826389e298 | 2270:d5a11262f067 |
---|---|
519 | 519 |
520 void | 520 void |
521 Cocoa_QuitKeyboard(_THIS) | 521 Cocoa_QuitKeyboard(_THIS) |
522 { | 522 { |
523 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; | 523 SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; |
524 NSAutoreleasePool *pool; | |
524 | 525 |
525 SDL_DelKeyboard(data->keyboard); | 526 SDL_DelKeyboard(data->keyboard); |
526 | 527 |
528 pool = [[NSAutoreleasePool alloc] init]; | |
527 [data->fieldEdit release]; | 529 [data->fieldEdit release]; |
530 [pool release]; | |
528 } | 531 } |
529 | 532 |
530 /* vi: set ts=4 sw=4 expandtab: */ | 533 /* vi: set ts=4 sw=4 expandtab: */ |