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:
parent
4721dc0856
commit
9237d40e09
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue