WebWorkerObserver should be destroyed on exit

This commit is contained in:
Cheng Zhao 2017-03-10 15:35:44 +09:00
parent d2f185bea5
commit 9c9c8ec5f1

View file

@ -68,6 +68,7 @@ void WebWorkerObserver::ContextWillDestroy(v8::Local<v8::Context> context) {
node::FreeEnvironment(env);
atom_bindings_.reset();
node_bindings_.reset();
delete this;
}
} // namespace atom