summaryrefslogtreecommitdiff
path: root/javascript/jsapi/htmlcollection.bnd
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/jsapi/htmlcollection.bnd')
-rw-r--r--javascript/jsapi/htmlcollection.bnd8
1 files changed, 7 insertions, 1 deletions
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);
+ }
+%}