diff --git a/atom/renderer/web_worker_observer.cc b/atom/renderer/web_worker_observer.cc index 65ca81c67750..aa335a92d516 100644 --- a/atom/renderer/web_worker_observer.cc +++ b/atom/renderer/web_worker_observer.cc @@ -68,6 +68,7 @@ void WebWorkerObserver::ContextWillDestroy(v8::Local context) { node::FreeEnvironment(env); atom_bindings_.reset(); node_bindings_.reset(); + delete this; } } // namespace atom