project_files/HedgewarsMobile/Classes/GameConfigViewController.m
changeset 3661 2378ada8a6ee
parent 3659 f8d5ac50e307
child 3662 a44406f4369b
--- a/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Jul 20 05:37:58 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/GameConfigViewController.m	Tue Jul 20 23:30:54 2010 +0200
@@ -243,6 +243,8 @@
 }
 
 -(void) didReceiveMemoryWarning {
+    if (activeController.view.superview == nil) 
+        activeController = nil;
     // Releases the view if it doesn't have a superview.
     [super didReceiveMemoryWarning];
     // Release any cached data, images, etc that aren't in use.
@@ -252,7 +254,6 @@
         teamConfigViewController = nil;
     if (schemeWeaponConfigViewController.view.superview == nil)
         schemeWeaponConfigViewController = nil;
-    activeController = nil;
     MSG_MEMCLEAN();
 }
 
@@ -266,7 +267,7 @@
 }
 
 -(void) dealloc {
-    [activeController release];
+    //[activeController release];
     [mapConfigViewController release];
     [teamConfigViewController release];
     [schemeWeaponConfigViewController release];