be a good memory aware citizen
authorkoda
Wed, 05 Oct 2011 09:49:39 +0200
changeset 6085 252e9a7d260f
parent 6084 e692c0348e74
child 6086 c612f24bf162
be a good memory aware citizen
project_files/HedgewarsMobile/Classes/MainMenuViewController.m
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Wed Oct 05 01:06:58 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Wed Oct 05 09:49:39 2011 +0200
@@ -263,6 +263,7 @@
     self.aboutViewController = nil;
     self.savedGamesViewController = nil;
     self.restoreViewController = nil;
+    self.missionsViewController = nil;
     MSG_DIDUNLOAD();
     [super viewDidUnload];
 }
@@ -278,6 +279,8 @@
         self.savedGamesViewController = nil;
     if (self.restoreViewController.view.superview == nil)
         self.restoreViewController = nil;
+    if (self.missionsViewController.view.superview == nil)
+        self.missionsViewController = nil;
     MSG_MEMCLEAN();
     [super didReceiveMemoryWarning];
 }
@@ -288,6 +291,7 @@
     releaseAndNil(aboutViewController);
     releaseAndNil(savedGamesViewController);
     releaseAndNil(restoreViewController);
+    releaseAndNil(missionsViewController);
     [super dealloc];
 }