project_files/HedgewarsMobile/Classes/SingleTeamViewController.m
changeset 5208 878e551f0b4a
parent 4976 088d40d8aba2
child 5982 283be2ca54a7
--- a/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SingleTeamViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -395,17 +395,17 @@
 }
 
 -(void) dealloc {
-    [teamDictionary release];
-    [teamName release];
-    [normalHogSprite release];
-    [secondaryItems release];
-    [moreSecondaryItems release];
-    [hogHatViewController release];
-    [gravesViewController release];
-    [fortsViewController release];
-    [voicesViewController release];
-    [flagsViewController release];
-    [levelViewController release];
+    releaseAndNil(teamDictionary);
+    releaseAndNil(teamName);
+    releaseAndNil(normalHogSprite);
+    releaseAndNil(secondaryItems);
+    releaseAndNil(moreSecondaryItems);
+    releaseAndNil(hogHatViewController);
+    releaseAndNil(gravesViewController);
+    releaseAndNil(fortsViewController);
+    releaseAndNil(voicesViewController);
+    releaseAndNil(flagsViewController);
+    releaseAndNil(levelViewController);
     [super dealloc];
 }