fix: issue 10962, crash when open devtool (backport: 3-0-x) (#14303)

* fix: crash when opening devtool (#10962)

* fix: fixed linting issues
This commit is contained in:
trop[bot]
2018-08-25 12:23:06 -07:00
committed by Samuel Attard
parent 4721dc0856
commit 9237d40e09

View File

@@ -735,6 +735,8 @@ void InspectableWebContentsImpl::WebContentsDestroyed() {
for (const auto& pair : pending_requests_)
delete pair.first;
pending_requests_.clear();
if (view_ && view_->GetDelegate())
view_->GetDelegate()->DevToolsClosed();
}