Merge pull request #226 from electron/fix-crash

Fix double free when closing window with devtools opened
This commit is contained in:
Cheng Zhao
2016-06-14 04:40:11 +00:00
committed by GitHub

View File

@@ -226,6 +226,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
}
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
Observe(nullptr);
}
InspectableWebContentsView* InspectableWebContentsImpl::GetView() const {
@@ -618,7 +619,6 @@ void InspectableWebContentsImpl::RenderFrameHostChanged(
void InspectableWebContentsImpl::WebContentsDestroyed() {
frontend_loaded_ = false;
Observe(nullptr);
Detach();
for (const auto& pair : pending_requests_)