--- a/project_files/HedgewarsMobile/Classes/MasterViewController.m Thu May 12 23:00:26 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MasterViewController.m Thu May 12 23:29:31 2011 +0200
@@ -205,14 +205,14 @@
}
-(void) dealloc {
- targetController = nil;
- [controllerNames release];
- [lastIndexPath release];
- [generalSettingsViewController release];
- [teamSettingsViewController release];
- [weaponSettingsViewController release];
- [schemeSettingsViewController release];
- [supportViewController release];
+ self.targetController = nil;
+ releaseAndNil(controllerNames);
+ releaseAndNil(lastIndexPath);
+ releaseAndNil(generalSettingsViewController);
+ releaseAndNil(teamSettingsViewController);
+ releaseAndNil(weaponSettingsViewController);
+ releaseAndNil(schemeSettingsViewController);
+ releaseAndNil(supportViewController);
[super dealloc];
}