project_files/HedgewarsMobile/Classes/MainMenuViewController.m
changeset 3971 5c82ee165ed5
parent 3923 694e6f6e0e30
child 3996 eb549fd864a5
--- a/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Mon Oct 11 16:56:00 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/MainMenuViewController.m	Tue Oct 12 05:06:30 2010 +0200
@@ -35,16 +35,6 @@
     return rotationManager(interfaceOrientation);
 }
 
-- (void)didReceiveMemoryWarning {
-    // Releases the view if it doesn't have a superview.
-    [super didReceiveMemoryWarning];
-    if (self.settingsViewController.view.superview == nil)
-        self.settingsViewController = nil;
-    if (self.gameConfigViewController.view.superview == nil)
-        self.gameConfigViewController = nil;
-    MSG_MEMCLEAN();
-}
-
 // using a different thread for audio 'cos it's slow
 -(void) initAudioThread {
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@@ -256,6 +246,19 @@
     [super viewDidUnload];
 }
 
+-(void) didReceiveMemoryWarning {
+    if (self.settingsViewController.view.superview == nil)
+        self.settingsViewController = nil;
+    if (self.gameConfigViewController.view.superview == nil)
+        self.gameConfigViewController = nil;
+    if (self.aboutViewController.view.superview == nil)
+        self.aboutViewController = nil;
+    if (self.savedGamesViewController.view.superview == nil)
+        self.savedGamesViewController = nil;
+    MSG_MEMCLEAN();
+    [super didReceiveMemoryWarning];
+}
+
 -(void) dealloc {
     [settingsViewController release];
     [gameConfigViewController release];