diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-08-23 02:01:29 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-08-23 02:07:24 +0200 |
commit | 48976d29f4a2dd72cbef2096dd5e7b822ee19df0 (patch) | |
tree | 0777d059f81c5fece0a4fdc416b8469922d29878 /src/node_contextify.cc | |
parent | 2891790dbdc0f1ac0cb23c8dd2f284d78c78abdb (diff) | |
download | node-new-48976d29f4a2dd72cbef2096dd5e7b822ee19df0.tar.gz |
vm: fix Persistent<Context> leak
Diffstat (limited to 'src/node_contextify.cc')
-rw-r--r-- | src/node_contextify.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 0f1b4588b7..ef2ef891cf 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -177,9 +177,7 @@ class ContextifyContext : ObjectWrap { ContextifyContext* ctx = ObjectWrap::Unwrap<ContextifyContext>(hidden_context); - Persistent<Context> context; - context.Reset(node_isolate, ctx->context_); - return PersistentToLocal(node_isolate, context); + return PersistentToLocal(node_isolate, ctx->context_); } |