diff options
-rw-r--r-- | chrome/views/window.cc | 1 | ||||
-rw-r--r-- | chrome/views/window_delegate.cc | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/chrome/views/window.cc b/chrome/views/window.cc index 75bd988..db6174c 100644 --- a/chrome/views/window.cc +++ b/chrome/views/window.cc @@ -336,7 +336,6 @@ void Window::OnCommand(UINT notification_code, int command_id, HWND window) { void Window::OnDestroy() { if (window_delegate_) { window_delegate_->WindowClosing(); - window_delegate_->window_.release(); window_delegate_ = NULL; } RestoreEnabledIfNecessary(); diff --git a/chrome/views/window_delegate.cc b/chrome/views/window_delegate.cc index d93a7bd..f6021e0 100644 --- a/chrome/views/window_delegate.cc +++ b/chrome/views/window_delegate.cc @@ -14,6 +14,7 @@ WindowDelegate::WindowDelegate() { } WindowDelegate::~WindowDelegate() { + window_.release(); } // Returns the icon to be displayed in the window. |