cocoaTouch/MainMenuViewController.m
changeset 3490 016b3172b645
parent 3479 972ae3ec178a
child 3513 f589230fa21b
--- a/cocoaTouch/MainMenuViewController.m	Tue Jun 01 19:33:45 2010 +0000
+++ b/cocoaTouch/MainMenuViewController.m	Wed Jun 02 13:52:23 2010 +0000
@@ -23,6 +23,11 @@
 - (void)didReceiveMemoryWarning {
 	// Releases the view if it doesn't have a superview.
 	[super didReceiveMemoryWarning];
+    if (settingsViewController.view.superview == nil) 
+        settingsViewController = nil;
+    if (gameConfigViewController.view.superview == nil) 
+        gameConfigViewController = nil;
+    MSG_MEMCLEAN();
 }
 
 -(void) viewDidLoad {
@@ -67,9 +72,10 @@
     [indicator release];
     
     // create a team
-    createTeamNamed(@"Default Team");
+    createTeamNamed(@"Pirates");
+    createTeamNamed(@"Ninjas");
     
-    createSchemeNamed(@"testing ftw");
+    createSchemeNamed(@"Scheme 0");
     
     // create settings.plist
     NSMutableDictionary *saveDict = [[NSMutableDictionary alloc] init];
@@ -158,6 +164,7 @@
     gameConfigViewController = nil;
     settingsViewController = nil;
 	[super viewDidUnload];
+    MSG_DIDUNLOAD();
 }
 
 -(void) dealloc {