summaryrefslogtreecommitdiff
path: root/javascript/jsapi/htmlcollection.bnd
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-11-04 11:18:37 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-11-04 11:20:02 +0000
commit8de9e1907759de5de7ded43573417b2f2e471c04 (patch)
tree6666110bfe84e3d34a2c33e2d9159d8bb806acbd /javascript/jsapi/htmlcollection.bnd
parentf5a98defaec97cf7a18516c8c9af49f10b93f0cf (diff)
downloadnetsurf-8de9e1907759de5de7ded43573417b2f2e471c04.tar.gz
netsurf-8de9e1907759de5de7ded43573417b2f2e471c04.tar.bz2
improve dom reference accounting
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);
+ }
+%}