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/htmlelement.bnd | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'javascript/jsapi/htmlelement.bnd') diff --git a/javascript/jsapi/htmlelement.bnd b/javascript/jsapi/htmlelement.bnd index 596bb7de0..83941c1b7 100644 --- a/javascript/jsapi/htmlelement.bnd +++ b/javascript/jsapi/htmlelement.bnd @@ -34,18 +34,12 @@ binding htmlelement { interface HTMLElement; /* Web IDL interface to generate */ - /* private members: - * - stored in private context structure. - * - passed as parameters to constructor and stored automatically. - * - are *not* considered for property getters/setters. - * - * internal members: - * - value stored in private context structure - * - not passed to constructor - * - must be instantiated by constructor - * - are considered for property getters/setters. - */ private "dom_element *" node; private "struct html_content *" htmlc; } +api finalise %{ + if (private != NULL) { + dom_node_unref(private->node); + } +%} \ No newline at end of file -- cgit v1.2.3