diff options
Diffstat (limited to 'ui/views/widget/widget.cc')
-rw-r--r-- | ui/views/widget/widget.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc index 36af0b1..ba2daa6 100644 --- a/ui/views/widget/widget.cc +++ b/ui/views/widget/widget.cc @@ -47,7 +47,8 @@ Widget::Widget(View* contents_view) root_view_(new internal::RootView(this, contents_view))), is_mouse_button_pressed_(false), last_mouse_event_was_move_(false), - ALLOW_THIS_IN_INITIALIZER_LIST(close_widget_factory_(this)) { + ALLOW_THIS_IN_INITIALIZER_LIST(close_widget_factory_(this)), + delete_on_destroy_(true) { } Widget::~Widget() { |