mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #226 from electron/fix-crash
Fix double free when closing window with devtools opened
This commit is contained in:
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user