project_files/HedgewarsMobile/Classes/HogHatViewController.m
changeset 5208 878e551f0b4a
parent 4976 088d40d8aba2
child 5983 f0925204f50e
--- a/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/HogHatViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -150,10 +150,10 @@
 }
 
 -(void) dealloc {
-    [hatArray release];
-    [teamDictionary release];
-    [normalHogSprite release];
-    [lastIndexPath release];
+    releaseAndNil(hatArray);
+    releaseAndNil(teamDictionary);
+    releaseAndNil(normalHogSprite);
+    releaseAndNil(lastIndexPath);
     [super dealloc];
 }