Chromium Code Reviews| Index: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm |
| index d949d4146b32eec822c0e72fb7f90f8ee17ec261..9467f5a5635e05b669a3ade820d0958e1f86b8ff 100644 |
| --- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm |
| +++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm |
| @@ -572,6 +572,10 @@ NSImage* Overlay(NSImage* ground, NSImage* overlay, CGFloat alpha) { |
| return self; |
| } |
| +- (void)browserWillBeDestroyed { |
| + browser_ = nullptr; |
| +} |
| + |
| - (void)dealloc { |
| [tabStripView_ setController:nil]; |
|
tapted
2015/07/06 07:26:18
Doing this for all the controlled views in other c
jackhou1
2015/07/07 03:27:27
I've just done this for things that might retain t
|