--- 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];