Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: ios/chrome/browser/ui/elements/selector_coordinator.mm

Issue 2353033002: Fix memory leak reported by clang static analyzer. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/elements/selector_coordinator.mm
diff --git a/ios/chrome/browser/ui/elements/selector_coordinator.mm b/ios/chrome/browser/ui/elements/selector_coordinator.mm
index 155daeedaac90aa89b6e4409fff18f0751d62926..8a90f0492c3c059186e2482dd2bc1cab655eb9c7 100644
--- a/ios/chrome/browser/ui/elements/selector_coordinator.mm
+++ b/ios/chrome/browser/ui/elements/selector_coordinator.mm
@@ -40,9 +40,9 @@
}
- (void)start {
- self.selectorPickerViewController =
- [[SelectorPickerViewController alloc] initWithOptions:self.options
- default:self.defaultOption];
+ self.selectorPickerViewController = [[[SelectorPickerViewController alloc]
+ initWithOptions:self.options
+ default:self.defaultOption] autorelease];
self.selectorPickerViewController.delegate = self;
self.selectorPickerViewController.modalTransitionStyle =
@@ -81,4 +81,4 @@ presentationControllerForPresentedViewController:(UIViewController*)presented
presentingViewController:self.baseViewController] autorelease];
}
-@end
+@end
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698