Merge pull request #226 from electron/fix-crash
Fix double free when closing window with devtools opened
This commit is contained in:
commit
ced54c4ada
1 changed files with 1 additions and 1 deletions
|
@ -226,6 +226,7 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
||||||
|
Observe(nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
InspectableWebContentsView* InspectableWebContentsImpl::GetView() const {
|
InspectableWebContentsView* InspectableWebContentsImpl::GetView() const {
|
||||||
|
@ -618,7 +619,6 @@ void InspectableWebContentsImpl::RenderFrameHostChanged(
|
||||||
|
|
||||||
void InspectableWebContentsImpl::WebContentsDestroyed() {
|
void InspectableWebContentsImpl::WebContentsDestroyed() {
|
||||||
frontend_loaded_ = false;
|
frontend_loaded_ = false;
|
||||||
Observe(nullptr);
|
|
||||||
Detach();
|
Detach();
|
||||||
|
|
||||||
for (const auto& pair : pending_requests_)
|
for (const auto& pair : pending_requests_)
|
||||||
|
|
Loading…
Reference in a new issue