cocoaTouch/MainMenuViewController.m
changeset 3063 0092dc37fbd6
parent 3034 b576460ba8ad
child 3199 1a9938a27677
--- a/cocoaTouch/MainMenuViewController.m	Thu Mar 25 02:02:53 2010 +0000
+++ b/cocoaTouch/MainMenuViewController.m	Thu Mar 25 23:01:50 2010 +0000
@@ -113,6 +113,8 @@
 
 -(void) appear {
     [[SDLUIKitDelegate sharedAppDelegate].uiwindow addSubview:self.view];
+    [self release];
+    
     [UIView beginAnimations:@"inserting main controller" context:NULL];
 	[UIView setAnimationDuration:1];
 	self.view.alpha = 1;
@@ -124,6 +126,8 @@
 	[UIView setAnimationDuration:1];
 	self.view.alpha = 0;
 	[UIView commitAnimations];
+    
+    [self retain];
     [self.view removeFromSuperview];
 }