[Commits] SDL: Don't call CGContextRelease() on object Cocoa already flagg...

libsdl.org revision control commits-owner at libsdl.org
Sat Jun 4 12:39:50 PDT 2011


details:   http://hg.libsdl.org/SDL/rev/80ae1ac3bdc9
changeset: 5550:80ae1ac3bdc9
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Sat Jun 04 15:34:32 2011 -0400
description:
Don't call CGContextRelease() on object Cocoa already flagged for autorelease.

Thanks to Kirk A. Baker for this fix!

diffstat:

 src/video/quartz/SDL_QuartzVideo.m |  1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r b3577cec429d -r 80ae1ac3bdc9 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);
     }
 }
 


More information about the commits mailing list