diff nodejs/shapes.cc @ 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 ed59e659a202
children be0e02948c1d
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