gtk: Should remove self from watcher list in destructor.

This commit is contained in:
Cheng Zhao 2014-03-27 18:05:28 +08:00
parent c6f0968d17
commit d3e6166de6

View file

@ -84,6 +84,8 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
} }
NativeWindowGtk::~NativeWindowGtk() { NativeWindowGtk::~NativeWindowGtk() {
ui::ActiveWindowWatcherX::RemoveObserver(this);
if (window_) if (window_)
gtk_widget_destroy(GTK_WIDGET(window_)); gtk_widget_destroy(GTK_WIDGET(window_));
} }