win: Remove focus listener after window is closed, fixes #364.

This commit is contained in:
Cheng Zhao 2014-06-03 14:39:47 +08:00
parent 98aba2aa12
commit 04cbb76776

View file

@ -250,6 +250,7 @@ NativeWindowWin::NativeWindowWin(content::WebContents* web_contents,
}
NativeWindowWin::~NativeWindowWin() {
views::WidgetFocusManager::GetInstance()->RemoveFocusChangeListener(this);
}
void NativeWindowWin::Close() {