project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 5208 878e551f0b4a
parent 5206 db775bddf771
child 5219 9e2a17ab178b
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -239,10 +239,10 @@
 }
 
 -(void) dealloc {
-    [settingsViewController release];
-    [gameConfigViewController release];
-    [aboutViewController release];
-    [savedGamesViewController release];
+    releaseAndNil(settingsViewController);
+    releaseAndNil(gameConfigViewController);
+    releaseAndNil(aboutViewController);
+    releaseAndNil(savedGamesViewController);
     [super dealloc];
 }