From c07b2edd7783a3c03145180126d3d6dcbfaba604 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 1 Jun 2019 13:59:36 +0100 Subject: Document.bnd: createDocumentFragment() unref fragment The pushed fragment node holds the reference, so unref it in the end of createDocumentFragment() Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/Document.bnd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/handlers/javascript') diff --git a/content/handlers/javascript/duktape/Document.bnd b/content/handlers/javascript/duktape/Document.bnd index 0246fdfa6..bd0206822 100644 --- a/content/handlers/javascript/duktape/Document.bnd +++ b/content/handlers/javascript/duktape/Document.bnd @@ -198,6 +198,8 @@ method Document::createDocumentFragment() dukky_push_node(ctx, (dom_node *)frag); + dom_node_unref(frag); /* The pushed node holds the reference now */ + return 1; %} -- cgit v1.2.3