project_files/HedgewarsMobile/Classes/OverlayViewController.m
changeset 5208 878e551f0b4a
parent 5207 4c9ae0f484da
child 5662 99083392cd4f
--- a/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/OverlayViewController.m	Thu May 12 23:29:31 2011 +0200
@@ -204,14 +204,14 @@
 }
 
 -(void) dealloc {
-    [popupMenu release];
-    [helpPage release];
-    [popoverController release];
-    [amvc release];
-    [lowerIndicator release];
-    [savesIndicator release];
-    [confirmButton release];
-    [grenadeTimeSegment release];
+    releaseAndNil(popupMenu);
+    releaseAndNil(helpPage);
+    releaseAndNil(popoverController);
+    releaseAndNil(amvc);
+    releaseAndNil(lowerIndicator);
+    releaseAndNil(savesIndicator);
+    releaseAndNil(confirmButton);
+    releaseAndNil(grenadeTimeSegment);
     // dimTimer is autoreleased
     [super dealloc];
 }