Merge pull request #278 from electron/devtools_shutdown_patch

close devtools web contents when available to trigger cleanup
This commit is contained in:
Cheng Zhao 2017-03-16 17:49:57 +09:00 committed by GitHub
commit e0485f5ea1

View file

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