diff options
Diffstat (limited to 'chrome/browser/external_tab_container.cc')
-rw-r--r-- | chrome/browser/external_tab_container.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index 9fd060e..bf6dfd8 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -130,7 +130,6 @@ bool ExternalTabContainer::Uninitialize(HWND window) { } void ExternalTabContainer::OnFinalMessage(HWND window) { - Uninitialize(window); delete this; } @@ -145,6 +144,11 @@ LRESULT ExternalTabContainer::OnSize(UINT, WPARAM, LPARAM, BOOL& handled) { return 0; } +LRESULT ExternalTabContainer::OnDestroy(UINT, WPARAM, LPARAM, BOOL& handled) { + Uninitialize(m_hWnd); + return 0; +} + void ExternalTabContainer::OpenURLFromTab(TabContents* source, const GURL& url, const GURL& referrer, |