equal
deleted
inserted
replaced
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; |