mirror of
https://github.com/electron/electron.git
synced 2026-01-27 08:18:28 -05:00
close devtools web contents when available to trigger cleanup
This commit is contained in:
@@ -235,6 +235,8 @@ InspectableWebContentsImpl::InspectableWebContentsImpl(
|
||||
}
|
||||
|
||||
InspectableWebContentsImpl::~InspectableWebContentsImpl() {
|
||||
if (devtools_web_contents_)
|
||||
devtools_web_contents_->Close();
|
||||
Observe(nullptr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user