| Index: views/widget/native_widget_gtk.cc
|
| ===================================================================
|
| --- views/widget/native_widget_gtk.cc (revision 91728)
|
| +++ views/widget/native_widget_gtk.cc (working copy)
|
| @@ -393,12 +393,15 @@
|
| }
|
|
|
| NativeWidgetGtk::~NativeWidgetGtk() {
|
| - DCHECK(widget_ == NULL);
|
| // We need to delete the input method before calling DestroyRootView(),
|
| // because it'll set focus_manager_ to NULL.
|
| input_method_.reset();
|
| - if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET)
|
| + if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET) {
|
| + DCHECK(widget_ == NULL);
|
| delete delegate_;
|
| + } else {
|
| + CloseNow();
|
| + }
|
| }
|
|
|
| GtkWindow* NativeWidgetGtk::GetTransientParent() const {
|
|
|