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

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Aug 19, 2007
1 parent 4ae62c2 commit b573cda
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -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: */

0 comments on commit b573cda

Please sign in to comment.