]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Remove focus listener after window is closed, fixes #364.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 3 Jun 2014 06:39:47 +0000 (14:39 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 3 Jun 2014 06:39:47 +0000 (14:39 +0800)
atom/browser/native_window_win.cc

index d2916826efbec11527c01ac8ff6702a93b28c4e6..8682dc0aa982d0b3aeafbcafce7112a05282fcea 100644 (file)
@@ -250,6 +250,7 @@ NativeWindowWin::NativeWindowWin(content::WebContents* web_contents,
 }
 
 NativeWindowWin::~NativeWindowWin() {
+  views::WidgetFocusManager::GetInstance()->RemoveFocusChangeListener(this);
 }
 
 void NativeWindowWin::Close() {