diff -r 9df7b4812da9 -r 9660600e43cb project_files/HedgewarsMobile/Classes/UIImageExtra.m --- a/project_files/HedgewarsMobile/Classes/UIImageExtra.m Fri Oct 15 01:10:59 2010 +0200 +++ b/project_files/HedgewarsMobile/Classes/UIImageExtra.m Sat Oct 16 18:35:28 2010 +0200 @@ -138,9 +138,9 @@ UIImage *newImage = [UIImage imageWithCGImage:imageRef]; // Release colorspace, context and bitmap information - CGColorSpaceRelease(colorSpace); + CFRelease(imageRef); CGContextRelease(context); - CFRelease(imageRef); + CGColorSpaceRelease(colorSpace); // Return the new grayscale image return newImage;