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 555080ae1ac3bdc9
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
     1.1 --- a/src/video/quartz/SDL_QuartzVideo.m	Sat Jun 04 15:33:50 2011 -0400
     1.2 +++ b/src/video/quartz/SDL_QuartzVideo.m	Sat Jun 04 15:34:32 2011 -0400
     1.3 @@ -1194,7 +1194,6 @@
     1.4          CGContextDrawImage (cgc, rectangle, image);
     1.5          CGImageRelease(image);
     1.6          CGContextFlush (cgc);
     1.7 -        CGContextRelease (cgc);
     1.8      }
     1.9  }
    1.10