diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 32b5743b8db5..5e809552c6bf 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -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(); }