fix: raw_ptr destruction order in NodeBindings (#39762)
This commit is contained in:
parent
0b44f433c8
commit
792037b338
7 changed files with 69 additions and 44 deletions
|
|
@ -51,8 +51,8 @@ class ElectronRendererClient : public RendererClientBase {
|
|||
// Whether the node integration has been initialized.
|
||||
bool node_integration_initialized_ = false;
|
||||
|
||||
std::unique_ptr<NodeBindings> node_bindings_;
|
||||
std::unique_ptr<ElectronBindings> electron_bindings_;
|
||||
const std::unique_ptr<NodeBindings> node_bindings_;
|
||||
const std::unique_ptr<ElectronBindings> electron_bindings_;
|
||||
|
||||
// The node::Environment::GetCurrent API does not return nullptr when it
|
||||
// is called for a context without node::Environment, so we have to keep
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue