mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: issue 10962, crash when open devtool (#13808)
* fix: crash when opening devtool (#10962) * fix: fixed linting issues
This commit is contained in:
committed by
Samuel Attard
parent
3bc9ae7f5b
commit
8edd18be90
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user