Linux: Fix BadWindow error when creating popup windows (issue #1717).

This commit is contained in:
Marshall Greenblatt
2015-10-14 09:44:22 -07:00
parent 16f8a66040
commit fdf3088470
2 changed files with 9 additions and 7 deletions

View File

@@ -48,8 +48,10 @@ void BrowserWindow::OnBrowserClosing(CefRefPtr<CefBrowser> browser) {
void BrowserWindow::OnBrowserClosed(CefRefPtr<CefBrowser> browser) {
REQUIRE_MAIN_THREAD();
DCHECK_EQ(browser->GetIdentifier(), browser_->GetIdentifier());
browser_ = NULL;
if (browser_.get()) {
DCHECK_EQ(browser->GetIdentifier(), browser_->GetIdentifier());
browser_ = NULL;
}
client_handler_->DetachDelegate();
client_handler_ = NULL;