project_files/HedgewarsMobile/Classes/otherSrc/UIImageExtra.m
changeset 3525 1d7b056ff866
parent 3523 6592fbb969da
--- a/project_files/HedgewarsMobile/Classes/otherSrc/UIImageExtra.m	Sun Jun 20 18:35:59 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/otherSrc/UIImageExtra.m	Sun Jun 20 23:05:11 2010 +0200
@@ -153,8 +153,6 @@
 
 -(UIImage *)makeRoundCornersOfSize:(CGSize) sizewh {
 	UIImage * newImage = nil;
-
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
     
     NSInteger cornerWidth = sizewh.width;
     NSInteger cornerHeight = sizewh.height;
@@ -175,13 +173,10 @@
     CGImageRef imageMasked = CGBitmapContextCreateImage(context);
     CGContextRelease(context);
     CGColorSpaceRelease(colorSpace);
-    [self release];
     
-    newImage = [[UIImage imageWithCGImage:imageMasked] retain];
+    newImage = [UIImage imageWithCGImage:imageMasked];
     CGImageRelease(imageMasked);
-    
-    [pool release];
-    
+        
     return newImage;
 }