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:
Cheng Zhao 2017-03-27 22:46:06 -07:00 committed by GitHub
commit bd5c53c2f7

View file

@ -240,6 +240,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
} }
InspectableWebContentsImpl::~InspectableWebContentsImpl() { InspectableWebContentsImpl::~InspectableWebContentsImpl() {
if (devtools_web_contents_)
devtools_web_contents_->Close();
Observe(nullptr); Observe(nullptr);
} }