Don't call CGContextRelease() on object Cocoa already flagged for autorelease. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Sat, 04 Jun 2011 15:34:32 -0400
branchSDL-1.2
changeset 5550 80ae1ac3bdc9
parent 5549 b3577cec429d
child 5559 9f181779cfdd
Don't call CGContextRelease() on object Cocoa already flagged for autorelease. Thanks to Kirk A. Baker for this fix!
src/video/quartz/SDL_QuartzVideo.m
--- a/src/video/quartz/SDL_QuartzVideo.m	Sat Jun 04 15:33:50 2011 -0400
+++ b/src/video/quartz/SDL_QuartzVideo.m	Sat Jun 04 15:34:32 2011 -0400
@@ -1194,7 +1194,6 @@
         CGContextDrawImage (cgc, rectangle, image);
         CGImageRelease(image);
         CGContextFlush (cgc);
-        CGContextRelease (cgc);
     }
 }