Fixed minor memory leak
This commit is contained in:
parent
a338f55d65
commit
426ce13951
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ static NSString * mapsWithMeIsNotInstalledPage =
|
|||
webController.view = webView;
|
||||
webController.title = @"Install MapsWithMe";
|
||||
MWMNavigationController * navController = [[[MWMNavigationController alloc] initWithRootViewController:webController] autorelease];
|
||||
navController.navigationBar.topItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleDone target:navController action:@selector(onCloseButtonClicked:)];
|
||||
navController.navigationBar.topItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStyleDone target:navController action:@selector(onCloseButtonClicked:)] autorelease];
|
||||
|
||||
[[[UIApplication sharedApplication] delegate].window.rootViewController presentModalViewController:navController animated:YES];
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue