cocoaTouch/SingleTeamViewController.m
changeset 3490 016b3172b645
parent 3479 972ae3ec178a
--- a/cocoaTouch/SingleTeamViewController.m	Tue Jun 01 19:33:45 2010 +0000
+++ b/cocoaTouch/SingleTeamViewController.m	Wed Jun 02 13:52:23 2010 +0000
@@ -405,6 +405,18 @@
     // 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 (hogHatViewController.view.superview == nil)
+        hogHatViewController = nil;
+    if (gravesViewController.view.superview == nil)
+        gravesViewController = nil;
+    if (voicesViewController.view.superview == nil)
+        voicesViewController = nil;
+    if (fortsViewController.view.superview == nil)
+        fortsViewController = nil;
+    if (flagsViewController.view.superview == nil)
+        flagsViewController = nil;
+    if (levelViewController.view.superview == nil)
+        levelViewController = nil;
 }
 
 -(void) viewDidUnload {
@@ -419,6 +431,7 @@
     gravesViewController = nil;
     levelViewController = nil;
     [super viewDidUnload];
+    MSG_DIDUNLOAD();
 }
 
 -(void) dealloc {