project_files/HedgewarsMobile/Classes/TeamConfigViewController.m
changeset 5208 878e551f0b4a
parent 4976 088d40d8aba2
child 5976 306cedbeb213
--- a/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/TeamConfigViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -320,9 +320,9 @@
 
 
 -(void) dealloc {
-    [listOfTeams release];
-    [listOfSelectedTeams release];
-    [cachedContentsOfDir release];
+    releaseAndNil(listOfTeams);
+    releaseAndNil(listOfSelectedTeams);
+    releaseAndNil(cachedContentsOfDir);
     [super dealloc];
 }