--- a/project_files/HedgewarsMobile/Classes/PopoverMenuViewController.m Tue Jun 22 18:06:55 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/PopoverMenuViewController.m Wed Jun 23 01:00:52 2010 +0200
@@ -29,15 +29,19 @@
-(void) viewDidLoad {
isPaused = NO;
- menuList = [[NSArray alloc] initWithObjects:
- NSLocalizedString(@"Pause Game", @""),
- NSLocalizedString(@"Chat", @""),
- NSLocalizedString(@"End Game", @""),
- nil];
+ NSArray *array = [[NSArray alloc] initWithObjects:
+ NSLocalizedString(@"Pause Game", @""),
+ NSLocalizedString(@"Chat", @""),
+ NSLocalizedString(@"End Game", @""),
+ nil];
+ self.menuList = array;
+ [array release];
+
[super viewDidLoad];
}
-(void) viewDidUnload {
+ self.menuList = nil;
[super viewDidUnload];
MSG_DIDUNLOAD();
}