This bug report was migrated from our old Bugzilla tracker.
Reported in version: 1.2.14 Reported for operating system, platform: Mac OS X 10.6, All
Comments on the original bug report:
On 2009-10-31 07:55:08 +0000, Jean-Pierre wrote:
Every time the screen is refreshed (60 times per second at much), the console displays an error message:
31/10/09 12:52:59 SheepShaver-i386-SDL *** __NSAutoreleaseNoPool(): Object 0x45ebd0 of class NSWindowGraphicsContext autoreleased with no pool in place - just leaking
Looking into SDL 1.2.14 source code, the Quartz 2D UpdateRects() function in SDL_QuartzVideo.m does indeed allocate an object of type NSWindowGraphicsContext, but SheepShaver's display thread is not the main one and has no AutoReleasePool allocated.
To fix this, I added a 'CGContextRef wcg_context' field to the SDL_PrivateVideoData structure, Initialized it at the end of QZ_SetVideoWindowed():