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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_controller.mm

Issue 699013002: [Cocoa] Crash fix, caused by recent tab indicator change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need for nil check Created 6 years, 1 month 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: chrome/browser/ui/cocoa/tabs/tab_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
index 08428b141c70620b975ee43b52b1873d4c4ef5a0..43705573a569a72f4b3fca8bbd998ff1b3296b88 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm
@@ -128,6 +128,8 @@ class MenuDelegate : public ui::SimpleMenuModel::Delegate {
}
- (void)dealloc {
+ [mediaIndicatorButton_ setAnimationDoneTarget:nil withAction:nil];
+ [mediaIndicatorButton_ setClickTarget:nil withAction:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
[[self tabView] setController:nil];
[super dealloc];
« 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