Commit 4c88330a authored by Sam Lantinga's avatar Sam Lantinga

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402632
parent 33438525
...@@ -521,10 +521,13 @@ void ...@@ -521,10 +521,13 @@ void
Cocoa_QuitKeyboard(_THIS) Cocoa_QuitKeyboard(_THIS)
{ {
SDL_VideoData *data = (SDL_VideoData *) _this->driverdata; SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
NSAutoreleasePool *pool;
SDL_DelKeyboard(data->keyboard); SDL_DelKeyboard(data->keyboard);
pool = [[NSAutoreleasePool alloc] init];
[data->fieldEdit release]; [data->fieldEdit release];
[pool release];
} }
/* vi: set ts=4 sw=4 expandtab: */ /* vi: set ts=4 sw=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment