changeset 746:1dbc74a14199

Delete internal reference ob binding when invalidating coords and/or shapes
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 25 Aug 2010 14:48:39 +0800
parents 4ccb0553e804
children d2f2ed27b84d
files nodejs/coord.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}
     }
 }