diff -r 4c9ae0f484da -r 878e551f0b4a project_files/HedgewarsMobile/Classes/OverlayViewController.m --- 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]; }