gtk: Should remove self from watcher list in destructor.
This commit is contained in:
parent
c6f0968d17
commit
d3e6166de6
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
|
|||
}
|
||||
|
||||
NativeWindowGtk::~NativeWindowGtk() {
|
||||
ui::ActiveWindowWatcherX::RemoveObserver(this);
|
||||
|
||||
if (window_)
|
||||
gtk_widget_destroy(GTK_WIDGET(window_));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue