changeset 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 5b826389e298
children 60b4c52a7906
files src/video/cocoa/SDL_cocoakeyboard.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoakeyboard.m	Sun Aug 19 16:35:44 2007 +0000
+++ b/src/video/cocoa/SDL_cocoakeyboard.m	Sun Aug 19 16:36:51 2007 +0000
@@ -521,10 +521,13 @@
 Cocoa_QuitKeyboard(_THIS)
 {
     SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
+    NSAutoreleasePool *pool;
 
     SDL_DelKeyboard(data->keyboard);
 
+    pool = [[NSAutoreleasePool alloc] init];
     [data->fieldEdit release];
+    [pool release];
 }
 
 /* vi: set ts=4 sw=4 expandtab: */