project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 5483 fc755bb8096d
parent 5281 3324e9897ea7
child 6000 dbcebcd3d79f
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Sat Jul 30 17:23:47 2011 -0400
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Sun Jul 31 16:03:24 2011 +0200
@@ -387,6 +387,7 @@
         NSString *checkPath = [[NSString alloc] initWithFormat:@"%@/%@/icon.png",THEMES_DIRECTORY(),themeName];
         if ([[NSFileManager defaultManager] fileExistsAtPath:checkPath])
             [themeArray addObject:themeName];
+        [checkPath release];
     }
 
     // remove images that are too big for certain devices without loading the whole image