comparison 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
comparison
equal deleted inserted replaced
763:69ee361bf259 764:194e24d8ecab
39 39
40 js_rt = GET(*self_hdl, "mbrt")->ToObject(); 40 js_rt = GET(*self_hdl, "mbrt")->ToObject();
41 rdman = xnjsmb_rt_rdman(js_rt); 41 rdman = xnjsmb_rt_rdman(js_rt);
42 rdman_shape_changed(rdman, shape); 42 rdman_shape_changed(rdman, shape);
43 rdman_shape_free(rdman, shape); 43 rdman_shape_free(rdman, shape);
44
45 delete self_hdl;
44 } 46 }
45 47
46 static void 48 static void
47 xnjsmb_shape_mod(Handle<Object> self, shape_t *sh) { 49 xnjsmb_shape_mod(Handle<Object> self, shape_t *sh) {
48 Persistent<Object> *self_hdl; 50 Persistent<Object> *self_hdl;