diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-04 11:18:37 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-11-04 11:20:02 +0000 |
commit | 8de9e1907759de5de7ded43573417b2f2e471c04 (patch) | |
tree | 6666110bfe84e3d34a2c33e2d9159d8bb806acbd /javascript/jsapi/htmlcollection.bnd | |
parent | f5a98defaec97cf7a18516c8c9af49f10b93f0cf (diff) | |
download | netsurf-8de9e1907759de5de7ded43573417b2f2e471c04.tar.gz netsurf-8de9e1907759de5de7ded43573417b2f2e471c04.tar.bz2 |
improve dom reference accounting
Diffstat (limited to 'javascript/jsapi/htmlcollection.bnd')
-rw-r--r-- | javascript/jsapi/htmlcollection.bnd | 8 |
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); + } +%} |