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