Fixed minor memory leak

This commit is contained in:
Alex Zolotarev 2013-09-17 19:22:10 +03:00
parent a338f55d65
commit 426ce13951

View file

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