project_files/HedgewarsMobile/Classes/MasterViewController.m
changeset 3971 5c82ee165ed5
parent 3884 d7479079a8a8
child 3996 eb549fd864a5
--- a/project_files/HedgewarsMobile/Classes/MasterViewController.m	Mon Oct 11 16:56:00 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/MasterViewController.m	Tue Oct 12 05:06:30 2010 +0200
@@ -177,9 +177,6 @@
 #pragma mark -
 #pragma mark Memory management
 -(void) didReceiveMemoryWarning {
-    // Releases the view if it doesn't have a superview.
-    [super didReceiveMemoryWarning];
-    // Relinquish ownership any cached data, images, etc that aren't in use.
     if (generalSettingsViewController.view.superview == nil)
         generalSettingsViewController = nil;
     if (teamSettingsViewController.view.superview == nil)
@@ -191,6 +188,7 @@
     if (supportViewController.view.superview == nil)
         supportViewController = nil;
     MSG_MEMCLEAN();
+    [super didReceiveMemoryWarning];
 }
 
 -(void) viewDidUnload {