project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 5208 878e551f0b4a
parent 5002 a9c44a8ffec8
child 5451 e359a79e3d08
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -286,13 +286,13 @@
 
 
 -(void) dealloc {
-    [listOfSchemes release];
-    [listOfWeapons release];
-    [lastIndexPath_sc release];
-    [lastIndexPath_we release];
-    [selectedScheme release];
-    [selectedWeapon release];
-    [syncSwitch release];
+    releaseAndNil(listOfSchemes);
+    releaseAndNil(listOfWeapons);
+    releaseAndNil(lastIndexPath_sc);
+    releaseAndNil(lastIndexPath_we);
+    releaseAndNil(selectedScheme);
+    releaseAndNil(selectedWeapon);
+    releaseAndNil(syncSwitch);
     [super dealloc];
 }