project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
branchios-revival
changeset 11278 68a0df07382b
parent 11277 bb6c553162c5
child 11279 9e0fe32aff59
equal deleted inserted replaced
11277:bb6c553162c5 11278:68a0df07382b
   405     MSG_MEMCLEAN();
   405     MSG_MEMCLEAN();
   406     [super didReceiveMemoryWarning];
   406     [super didReceiveMemoryWarning];
   407 }
   407 }
   408 
   408 
   409 -(void) viewDidUnload {
   409 -(void) viewDidUnload {
   410     [[NSNotificationCenter defaultCenter] removeObserver:self];
       
   411     self.listOfSchemes = nil;
   410     self.listOfSchemes = nil;
   412     self.listOfWeapons = nil;
   411     self.listOfWeapons = nil;
   413     self.listOfScripts = nil;
   412     self.listOfScripts = nil;
   414     self.lastIndexPath_sc = nil;
   413     self.lastIndexPath_sc = nil;
   415     self.lastIndexPath_we = nil;
   414     self.lastIndexPath_we = nil;
   421     self.topControl = nil;
   420     self.topControl = nil;
   422     MSG_DIDUNLOAD();
   421     MSG_DIDUNLOAD();
   423     [super viewDidUnload];
   422     [super viewDidUnload];
   424 }
   423 }
   425 
   424 
   426 -(void) dealloc {
   425 -(void) dealloc
       
   426 {
       
   427     [[NSNotificationCenter defaultCenter] removeObserver:self];
   427     releaseAndNil(listOfSchemes);
   428     releaseAndNil(listOfSchemes);
   428     releaseAndNil(listOfWeapons);
   429     releaseAndNil(listOfWeapons);
   429     releaseAndNil(listOfScripts);
   430     releaseAndNil(listOfScripts);
   430     releaseAndNil(lastIndexPath_sc);
   431     releaseAndNil(lastIndexPath_sc);
   431     releaseAndNil(lastIndexPath_we);
   432     releaseAndNil(lastIndexPath_we);