Skip to content

Commit

Permalink
Fixed leak in Cocoa section
Browse files Browse the repository at this point in the history
  • Loading branch information
unixpickle committed Nov 27, 2011
1 parent 62f4b36 commit 019d50c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ANImageBitmapRep/Compatibility/OSCommonImage.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CGImageRef CGImageFromANImage (ANImageObj * anImageObj) {
source = CGImageSourceCreateWithData((CFDataRef)[anImageObj TIFFRepresentation], NULL);
#endif
CGImageRef maskRef = CGImageSourceCreateImageAtIndex(source, 0, NULL);
CFRelease(source);
#if __has_feature(objc_arc) == 1
CGImageRef autoreleased = (__bridge CGImageRef)CGImageReturnAutoreleased(maskRef);
CGImageRelease(maskRef);
Expand Down

0 comments on commit 019d50c

Please sign in to comment.