project_files/HedgewarsMobile/Classes/MapConfigViewController.m
changeset 5208 878e551f0b4a
parent 5207 4c9ae0f484da
child 5281 3324e9897ea7
--- a/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MapConfigViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -507,23 +507,23 @@
 }
 
 -(void) dealloc {
-    [seedCommand release];
-    [templateFilterCommand release];
-    [mapGenCommand release];
-    [mazeSizeCommand release];
-    [themeCommand release];
-    [staticMapCommand release];
-    [missionCommand release];
+    releaseAndNil(seedCommand);
+    releaseAndNil(templateFilterCommand);
+    releaseAndNil(mapGenCommand);
+    releaseAndNil(mazeSizeCommand);
+    releaseAndNil(themeCommand);
+    releaseAndNil(staticMapCommand);
+    releaseAndNil(missionCommand);
 
-    [previewButton release];
-    [tableView release];
-    [maxLabel release];
-    [sizeLabel release];
-    [segmentedControl release];
-    [slider release];
+    releaseAndNil(previewButton);
+    releaseAndNil(tableView);
+    releaseAndNil(maxLabel);
+    releaseAndNil(sizeLabel);
+    releaseAndNil(segmentedControl);
+    releaseAndNil(slider);
 
-    [lastIndexPath release];
-    [dataSourceArray release];
+    releaseAndNil(lastIndexPath);
+    releaseAndNil(dataSourceArray);
 
     [super dealloc];
 }