[Pkg-javascript-commits] [node-leveldown] 399/492: fix double-callback

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:14:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit 416189c5659dc801a6f4cd5040914c04577730fa
Author: Rod Vagg <rod at vagg.org>
Date:   Sun Sep 1 23:09:58 2013 +1000

    fix double-callback
---
 src/database_async.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/database_async.cc b/src/database_async.cc
index 5d19398..0cefdb9 100644
--- a/src/database_async.cc
+++ b/src/database_async.cc
@@ -66,7 +66,8 @@ void CloseWorker::Execute () {
 void CloseWorker::WorkComplete () {
   NanScope();
   HandleOKCallback();
-  AsyncWorker::WorkComplete();
+  delete callback;
+  callback = NULL;
 }
 
 /** IO WORKER (abstract) **/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list