|
@@ -112,7 +112,6 @@ BrowserWindow::~BrowserWindow() {
|
|
|
api_web_contents_->RemoveObserver(this);
|
|
|
// Destroy the WebContents.
|
|
|
OnCloseContents();
|
|
|
- api_web_contents_->Destroy();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -140,6 +139,7 @@ void BrowserWindow::WebContentsDestroyed() {
|
|
|
|
|
|
void BrowserWindow::OnCloseContents() {
|
|
|
BaseWindow::ResetBrowserViews();
|
|
|
+ api_web_contents_->Destroy();
|
|
|
}
|
|
|
|
|
|
void BrowserWindow::OnRendererResponsive(content::RenderProcessHost*) {
|