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

Fix double free when closing window with devtools opened #226

Merged
merged 1 commit into from
Jun 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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