From 5a4c40beea345d91a9b7520d7374336db928abe2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 1 Oct 2010 11:01:43 -0700 Subject: [PATCH] Drop reference to timer callback on clearTimeout Reported here: http://groups.google.com/group/nodejs-dev/browse_thread/thread/9e063d0938f99879 Would be good to test this somehow... --- src/node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.js b/src/node.js index 042aa88807..bdc208455d 100644 --- a/src/node.js +++ b/src/node.js @@ -425,6 +425,7 @@ global.setInterval = function (callback, repeat) { global.clearTimeout = function (timer) { if (!Timer) Timer = process.binding("timer").Timer; if (timer instanceof Timer) { + timer.callback = null; timer.stop(); } };