diff --git a/javascript/duktape/Document.bnd b/javascript/duktape/Document.bnd index 5541f1a24..6d11ea9c8 100644 --- a/javascript/duktape/Document.bnd +++ b/javascript/duktape/Document.bnd @@ -176,6 +176,7 @@ method Document::getElementById() if (element != NULL) { dukky_push_node(ctx, (dom_node *)element); + dom_node_unref(element); return 1; }