project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 3598 a8aa06bae895
parent 3547 02875b1145b7
child 3623 f14db208f2fa
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Wed Jun 30 22:20:52 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Wed Jun 30 22:42:55 2010 +0200
@@ -116,6 +116,7 @@
     CGColorSpaceRelease(colorspace);
     
     CGImageRef previewCGImage = CGBitmapContextCreateImage(bitmapImage);
+    CGContextRelease(bitmapImage);
     UIImage *previewImage = [[UIImage alloc] initWithCGImage:previewCGImage];
     CGImageRelease(previewCGImage);
     previewCGImage = nil;