Avoid touch an Environemnt after it gets destroyed

This commit is contained in:
Cheng Zhao 2017-03-02 16:50:15 +09:00
parent 29278e500b
commit 24574f7299
3 changed files with 11 additions and 0 deletions

View file

@ -384,6 +384,7 @@ void AtomRendererClient::WillReleaseScriptContext(
// Destroy the node environment.
node::FreeEnvironment(env);
atom_bindings_->EnvironmentDestroyed(env);
}
bool AtomRendererClient::ShouldFork(blink::WebLocalFrame* frame,