project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3661 2378ada8a6ee
parent 3659 f8d5ac50e307
child 3662 a44406f4369b
equal deleted inserted replaced
3660:bc125bea5849 3661:2378ada8a6ee
   241     [schemeWeaponConfigViewController viewDidAppear:animated];
   241     [schemeWeaponConfigViewController viewDidAppear:animated];
   242     [super viewDidAppear:animated];
   242     [super viewDidAppear:animated];
   243 }
   243 }
   244 
   244 
   245 -(void) didReceiveMemoryWarning {
   245 -(void) didReceiveMemoryWarning {
       
   246     if (activeController.view.superview == nil) 
       
   247         activeController = nil;
   246     // Releases the view if it doesn't have a superview.
   248     // Releases the view if it doesn't have a superview.
   247     [super didReceiveMemoryWarning];
   249     [super didReceiveMemoryWarning];
   248     // Release any cached data, images, etc that aren't in use.
   250     // Release any cached data, images, etc that aren't in use.
   249     if (mapConfigViewController.view.superview == nil) 
   251     if (mapConfigViewController.view.superview == nil) 
   250         mapConfigViewController = nil;
   252         mapConfigViewController = nil;
   251     if (teamConfigViewController.view.superview == nil)
   253     if (teamConfigViewController.view.superview == nil)
   252         teamConfigViewController = nil;
   254         teamConfigViewController = nil;
   253     if (schemeWeaponConfigViewController.view.superview == nil)
   255     if (schemeWeaponConfigViewController.view.superview == nil)
   254         schemeWeaponConfigViewController = nil;
   256         schemeWeaponConfigViewController = nil;
   255     activeController = nil;
       
   256     MSG_MEMCLEAN();
   257     MSG_MEMCLEAN();
   257 }
   258 }
   258 
   259 
   259 -(void) viewDidUnload {
   260 -(void) viewDidUnload {
   260     activeController = nil;
   261     activeController = nil;
   264     [super viewDidUnload];
   265     [super viewDidUnload];
   265     MSG_DIDUNLOAD();
   266     MSG_DIDUNLOAD();
   266 }
   267 }
   267 
   268 
   268 -(void) dealloc {
   269 -(void) dealloc {
   269     [activeController release];
   270     //[activeController release];
   270     [mapConfigViewController release];
   271     [mapConfigViewController release];
   271     [teamConfigViewController release];
   272     [teamConfigViewController release];
   272     [schemeWeaponConfigViewController release];
   273     [schemeWeaponConfigViewController release];
   273     [super dealloc];
   274     [super dealloc];
   274 }
   275 }