Skip to content

Commit

Permalink
fix: issue 10962, crash when open devtool (#13808)
Browse files Browse the repository at this point in the history
* fix: crash when opening devtool (#10962)

* fix: fixed linting issues
  • Loading branch information
wenjunche authored and MarshallOfSound committed Aug 24, 2018
1 parent 3bc9ae7 commit 8edd18b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brightray/browser/inspectable_web_contents_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 8edd18b

Please sign in to comment.