fix: issue 10962, crash when open devtool (#13808)

* fix: crash when opening devtool (#10962)

* fix: fixed linting issues
This commit is contained in:
Wenjun Che
2018-08-24 17:36:47 -04:00
committed by Samuel Attard
parent 3bc9ae7f5b
commit 8edd18be90

View File

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