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; %}