project_files/HedgewarsMobile/Classes/MasterViewController.m
changeset 3971 5c82ee165ed5
parent 3884 d7479079a8a8
child 3996 eb549fd864a5
equal deleted inserted replaced
3970:0f6e3219c108 3971:5c82ee165ed5
   175 
   175 
   176 
   176 
   177 #pragma mark -
   177 #pragma mark -
   178 #pragma mark Memory management
   178 #pragma mark Memory management
   179 -(void) didReceiveMemoryWarning {
   179 -(void) didReceiveMemoryWarning {
   180     // Releases the view if it doesn't have a superview.
       
   181     [super didReceiveMemoryWarning];
       
   182     // Relinquish ownership any cached data, images, etc that aren't in use.
       
   183     if (generalSettingsViewController.view.superview == nil)
   180     if (generalSettingsViewController.view.superview == nil)
   184         generalSettingsViewController = nil;
   181         generalSettingsViewController = nil;
   185     if (teamSettingsViewController.view.superview == nil)
   182     if (teamSettingsViewController.view.superview == nil)
   186         teamSettingsViewController = nil;
   183         teamSettingsViewController = nil;
   187     if (weaponSettingsViewController.view.superview == nil)
   184     if (weaponSettingsViewController.view.superview == nil)
   189     if (schemeSettingsViewController.view.superview == nil)
   186     if (schemeSettingsViewController.view.superview == nil)
   190         schemeSettingsViewController = nil;
   187         schemeSettingsViewController = nil;
   191     if (supportViewController.view.superview == nil)
   188     if (supportViewController.view.superview == nil)
   192         supportViewController = nil;
   189         supportViewController = nil;
   193     MSG_MEMCLEAN();
   190     MSG_MEMCLEAN();
       
   191     [super didReceiveMemoryWarning];
   194 }
   192 }
   195 
   193 
   196 -(void) viewDidUnload {
   194 -(void) viewDidUnload {
   197     self.targetController = nil;
   195     self.targetController = nil;
   198     self.controllerNames = nil;
   196     self.controllerNames = nil;