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..e994ad3d95fb05e9035ad3d40291d2fda199dae9 100644 |
--- a/chrome/browser/ui/cocoa/tabs/tab_controller.mm |
+++ b/chrome/browser/ui/cocoa/tabs/tab_controller.mm |
@@ -128,6 +128,10 @@ class MenuDelegate : public ui::SimpleMenuModel::Delegate { |
} |
- (void)dealloc { |
+ if (mediaIndicatorButton_) { |
Nico
2014/11/04 00:01:22
(nit: not needed, messages to nil are silently ign
miu
2014/11/04 00:22:29
Done.
|
+ [mediaIndicatorButton_ setAnimationDoneTarget:nil withAction:nil]; |
+ [mediaIndicatorButton_ setClickTarget:nil withAction:nil]; |
+ } |
[[NSNotificationCenter defaultCenter] removeObserver:self]; |
[[self tabView] setController:nil]; |
[super dealloc]; |