cocoaTouch/GameConfigViewController.m
changeset 3487 b1d00f1950c8
parent 3374 0d522416d97f
child 3490 016b3172b645
--- a/cocoaTouch/GameConfigViewController.m	Fri May 28 20:13:47 2010 +0000
+++ b/cocoaTouch/GameConfigViewController.m	Mon May 31 19:33:42 2010 +0000
@@ -137,6 +137,12 @@
     // Releases the view if it doesn't have a superview.
     [super didReceiveMemoryWarning];
     // Release any cached data, images, etc that aren't in use.
+    if (mapConfigViewController.view.superview == nil ) 
+        mapConfigViewController = nil;
+    if (teamConfigViewController.view.superview == nil)
+        teamConfigViewController = nil;
+    activeController = nil;
+    MSG_MEMCLEAN();
 }