Skip to content

Commit

Permalink
Don't call CGContextRelease() on object Cocoa already flagged for aut…
Browse files Browse the repository at this point in the history
…orelease.

Thanks to Kirk A. Baker for this fix!
  • Loading branch information
icculus committed Jun 4, 2011
1 parent 3315ad7 commit 724c22e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/video/quartz/SDL_QuartzVideo.m
Expand Up @@ -1194,7 +1194,6 @@ static void QZ_UpdateRects (_THIS, int numRects, SDL_Rect *rects)
CGContextDrawImage (cgc, rectangle, image);
CGImageRelease(image);
CGContextFlush (cgc);
CGContextRelease (cgc);
}
}

Expand Down

0 comments on commit 724c22e

Please sign in to comment.