diff options
Diffstat (limited to 'chrome/browser/cocoa/chrome_browser_window.mm')
| -rw-r--r-- | chrome/browser/cocoa/chrome_browser_window.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/chrome_browser_window.mm b/chrome/browser/cocoa/chrome_browser_window.mm index eecf09f..35aae1a 100644 --- a/chrome/browser/cocoa/chrome_browser_window.mm +++ b/chrome/browser/cocoa/chrome_browser_window.mm @@ -58,6 +58,10 @@ namespace { - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSDistributedNotificationCenter defaultCenter] removeObserver:self]; + if (widgetTrackingArea_) { + [[self frameView] removeTrackingArea:widgetTrackingArea_]; + widgetTrackingArea_.reset(); + } [super dealloc]; } |
