We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45493ec commit 8c2cf39Copy full SHA for 8c2cf39
src/nw_shell.cc
@@ -185,8 +185,10 @@ Shell::~Shell() {
185
if (is_devtools_ && devtools_owner_.get()) {
186
devtools_owner_->SendEvent("devtools-closed");
187
nwapi::DispatcherHost* dhost = nwapi::FindDispatcherHost(devtools_owner_->web_contents_->GetRenderViewHost());
188
- dhost->OnDeallocateObject(devtools_owner_->devtools_window_id_);
189
- devtools_owner_->devtools_window_id_ = 0;
+ if (devtools_owner_->devtools_window_id_) {
+ dhost->OnDeallocateObject(devtools_owner_->devtools_window_id_);
190
+ devtools_owner_->devtools_window_id_ = 0;
191
+ }
192
}
193
194
for (size_t i = 0; i < windows_.size(); ++i) {
0 commit comments