summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/handlers/javascript/duktape/Document.bnd2
1 files changed, 2 insertions, 0 deletions
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;
%}