project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
branchios-revival
changeset 11163 f65f462d5a06
parent 11148 064a53861759
child 11189 0fdef687de65
equal deleted inserted replaced
11162:715849bf6458 11163:f65f462d5a06
   394 }
   394 }
   395 
   395 
   396 #pragma mark -
   396 #pragma mark -
   397 #pragma mark Memory management
   397 #pragma mark Memory management
   398 -(void) didReceiveMemoryWarning {
   398 -(void) didReceiveMemoryWarning {
   399     if ([HWUtils isGameLaunched]) {
       
   400         self.lastIndexPath_sc = nil;
       
   401         self.lastIndexPath_we = nil;
       
   402         self.lastIndexPath_lu = nil;
       
   403         self.selectedScheme = nil;
       
   404         self.selectedWeapon = nil;
       
   405         self.selectedScript = nil;
       
   406         self.scriptCommand = nil;
       
   407         self.topControl = nil;
       
   408     }
       
   409     self.listOfSchemes = nil;
   399     self.listOfSchemes = nil;
   410     self.listOfWeapons = nil;
   400     self.listOfWeapons = nil;
   411     self.listOfScripts = nil;
   401     self.listOfScripts = nil;
   412     MSG_MEMCLEAN();
   402     MSG_MEMCLEAN();
   413     [super didReceiveMemoryWarning];
   403     [super didReceiveMemoryWarning];