changeset 764:194e24d8ecab

Delete weak handle for shape objects before GC
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 29 Aug 2010 00:32:12 +0800
parents 69ee361bf259
children a49358b040b5
files nodejs/shapes.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/shapes.cc	Sat Aug 28 23:19:36 2010 +0800
+++ b/nodejs/shapes.cc	Sun Aug 29 00:32:12 2010 +0800
@@ -41,6 +41,8 @@
     rdman = xnjsmb_rt_rdman(js_rt);
     rdman_shape_changed(rdman, shape);
     rdman_shape_free(rdman, shape);
+
+    delete self_hdl;
 }
 
 static void