project_files/HedgewarsMobile/Classes/GameConfigViewController.m
branchios-revival
changeset 11137 14f50dde3e8c
parent 11132 ccf095d96ef4
child 11148 064a53861759
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Aug 18 00:51:23 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Aug 18 01:08:21 2015 +0200
@@ -230,7 +230,8 @@
 }
 
 -(void) loadNiceHogs {
-    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+    @autoreleasepool {
+    
     srand(time(NULL));
     NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Hedgehog/Idle.png",GRAPHICS_DIRECTORY()];
     UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:filePath];
@@ -284,7 +285,8 @@
 
     [self.view addSubview:self.imgContainer];
     [hogSprite release];
-    [pool drain];
+        
+    }
 }
 
 -(void) viewDidLoad {