WebWorkerObserver should be destroyed on exit
This commit is contained in:
parent
d2f185bea5
commit
9c9c8ec5f1
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ void WebWorkerObserver::ContextWillDestroy(v8::Local<v8::Context> context) {
|
||||||
node::FreeEnvironment(env);
|
node::FreeEnvironment(env);
|
||||||
atom_bindings_.reset();
|
atom_bindings_.reset();
|
||||||
node_bindings_.reset();
|
node_bindings_.reset();
|
||||||
|
delete this;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace atom
|
} // namespace atom
|
||||||
|
|
Loading…
Reference in a new issue