From 8de9e1907759de5de7ded43573417b2f2e471c04 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 4 Nov 2012 11:18:37 +0000 Subject: improve dom reference accounting --- javascript/jsapi/htmlcollection.bnd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'javascript/jsapi/htmlcollection.bnd') diff --git a/javascript/jsapi/htmlcollection.bnd b/javascript/jsapi/htmlcollection.bnd index a7947cd29..f4a11549b 100644 --- a/javascript/jsapi/htmlcollection.bnd +++ b/javascript/jsapi/htmlcollection.bnd @@ -82,4 +82,10 @@ operation namedItem %{ jsret = jsapi_new_HTMLElement(cx, NULL, NULL, (dom_element *)domnode, private->htmlc); } - %} +%} + +api finalise %{ + if (private != NULL) { + dom_html_collection_unref(private->collection); + } +%} -- cgit v1.2.3