From 724c22e1bff1d5330ed79751621d60c32cde0a89 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 4 Jun 2011 15:34:32 -0400 Subject: [PATCH] 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 file changed, 1 deletion(-) diff --git a/src/video/quartz/SDL_QuartzVideo.m b/src/video/quartz/SDL_QuartzVideo.m index 73a71d0ce..c094dc730 100644 --- a/src/video/quartz/SDL_QuartzVideo.m +++ b/src/video/quartz/SDL_QuartzVideo.m @@ -1194,7 +1194,6 @@ static void QZ_UpdateRects (_THIS, int numRects, SDL_Rect *rects) CGContextDrawImage (cgc, rectangle, image); CGImageRelease(image); CGContextFlush (cgc); - CGContextRelease (cgc); } }