equal
deleted
inserted
replaced
261 self.gameConfigViewController = nil; |
261 self.gameConfigViewController = nil; |
262 self.settingsViewController = nil; |
262 self.settingsViewController = nil; |
263 self.aboutViewController = nil; |
263 self.aboutViewController = nil; |
264 self.savedGamesViewController = nil; |
264 self.savedGamesViewController = nil; |
265 self.restoreViewController = nil; |
265 self.restoreViewController = nil; |
|
266 self.missionsViewController = nil; |
266 MSG_DIDUNLOAD(); |
267 MSG_DIDUNLOAD(); |
267 [super viewDidUnload]; |
268 [super viewDidUnload]; |
268 } |
269 } |
269 |
270 |
270 -(void) didReceiveMemoryWarning { |
271 -(void) didReceiveMemoryWarning { |
276 self.aboutViewController = nil; |
277 self.aboutViewController = nil; |
277 if (self.savedGamesViewController.view.superview == nil) |
278 if (self.savedGamesViewController.view.superview == nil) |
278 self.savedGamesViewController = nil; |
279 self.savedGamesViewController = nil; |
279 if (self.restoreViewController.view.superview == nil) |
280 if (self.restoreViewController.view.superview == nil) |
280 self.restoreViewController = nil; |
281 self.restoreViewController = nil; |
|
282 if (self.missionsViewController.view.superview == nil) |
|
283 self.missionsViewController = nil; |
281 MSG_MEMCLEAN(); |
284 MSG_MEMCLEAN(); |
282 [super didReceiveMemoryWarning]; |
285 [super didReceiveMemoryWarning]; |
283 } |
286 } |
284 |
287 |
285 -(void) dealloc { |
288 -(void) dealloc { |
286 releaseAndNil(settingsViewController); |
289 releaseAndNil(settingsViewController); |
287 releaseAndNil(gameConfigViewController); |
290 releaseAndNil(gameConfigViewController); |
288 releaseAndNil(aboutViewController); |
291 releaseAndNil(aboutViewController); |
289 releaseAndNil(savedGamesViewController); |
292 releaseAndNil(savedGamesViewController); |
290 releaseAndNil(restoreViewController); |
293 releaseAndNil(restoreViewController); |
|
294 releaseAndNil(missionsViewController); |
291 [super dealloc]; |
295 [super dealloc]; |
292 } |
296 } |
293 |
297 |
294 @end |
298 @end |