# HG changeset patch # User Thinker K.F. Li # Date 1282718919 -28800 # Node ID 1dbc74a14199cf564628020f8ce1b97fe1998885 # Parent 4ccb0553e80499985ca3fc3e41c8687993e64ca8 Delete internal reference ob binding when invalidating coords and/or shapes diff -r 4ccb0553e804 -r 1dbc74a14199 nodejs/coord.cc --- a/nodejs/coord.cc Wed Aug 25 14:43:48 2010 +0800 +++ b/nodejs/coord.cc Wed Aug 25 14:48:39 2010 +0800 @@ -81,6 +81,7 @@ PROP_JSOBJ); SET(*child_hdl, "valid", _false); WRAP(*child_hdl, NULL); + delete child_hdl; /* Invalidate members of a coord */ FOR_COORD_SHAPES(child, mem) { @@ -88,6 +89,7 @@ PROP_JSOBJ); SET(*mem_hdl, "valid", _false); WRAP(*mem_hdl, NULL); + delete mem_hdl; } } }