Merge pull request #278 from electron/devtools_shutdown_patch
close devtools web contents when available to trigger cleanup
This commit is contained in:
commit
e0485f5ea1
1 changed files with 2 additions and 0 deletions
|
@ -235,6 +235,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
|||
}
|
||||
|
||||
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
||||
if (devtools_web_contents_)
|
||||
devtools_web_contents_->Close();
|
||||
Observe(nullptr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue