Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #226 from electron/fix-crash
Browse files Browse the repository at this point in the history
Fix double free when closing window with devtools opened
  • Loading branch information
zcbenz authored Jun 14, 2016
2 parents 097d14b + 55423bd commit 8978bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/inspectable_web_contents_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
}

InspectableWebContentsImpl::~InspectableWebContentsImpl() {
Observe(nullptr);
}

InspectableWebContentsView* InspectableWebContentsImpl::GetView() const {
Expand Down Expand Up @@ -618,7 +619,6 @@ void InspectableWebContentsImpl::RenderFrameHostChanged(

void InspectableWebContentsImpl::WebContentsDestroyed() {
frontend_loaded_ = false;
Observe(nullptr);
Detach();

for (const auto& pair : pending_requests_)
Expand Down

0 comments on commit 8978bc6

Please sign in to comment.