fix: dangling raw_ptr NodeBindings::uv_env_ (#42933)
This commit is contained in:
parent
bc345db351
commit
5773a2dce6
2 changed files with 3 additions and 2 deletions
|
@ -604,6 +604,7 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
|||
node_env_->set_trace_sync_io(false);
|
||||
js_env_->DestroyMicrotasksRunner();
|
||||
node::Stop(node_env_.get(), node::StopFlags::kDoNotTerminateIsolate);
|
||||
node_bindings_->set_uv_env(nullptr);
|
||||
node_env_.reset();
|
||||
|
||||
auto default_context_key = ElectronBrowserContext::PartitionKey("", false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue