cocoaTouch/iPad/MainMenuViewController.m
changeset 3250 d5cd1a617123
parent 3165 3ec07a7d8456
child 3251 221c163ad5d9
--- a/cocoaTouch/iPad/MainMenuViewController.m	Fri Apr 02 10:50:10 2010 +0000
+++ b/cocoaTouch/iPad/MainMenuViewController.m	Fri Apr 02 12:38:36 2010 +0000
@@ -30,13 +30,19 @@
 }
 
 - (void)dealloc {
+    [cover release];
 	[super dealloc];
 }
 
+-(void) viewDidUnload {
+    self.cover = nil;
+	[super viewDidUnload];
+}
+
 -(void) viewDidLoad {
     // initialize some files the first time we load the game
 	[NSThread detachNewThreadSelector:@selector(checkFirstRun) toTarget:self withObject:nil];
-    // listet to request to remove the modalviewcontroller
+    // listen to request to remove the modalviewcontroller
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dismissModalViewController) name: @"dismissModalView" object:nil];
 
 	[super viewDidLoad];