diff --git a/src/ecmascript/quickjs/nodelist2.c b/src/ecmascript/quickjs/nodelist2.c index acf423af6..bc2581660 100644 --- a/src/ecmascript/quickjs/nodelist2.c +++ b/src/ecmascript/quickjs/nodelist2.c @@ -132,6 +132,7 @@ getNodeList2(JSContext *ctx, void *nodes) int i = 0; foreach (sn, *sni) { + dom_node_ref((dom_node *)(sn->node)); JSValue obj = getElement(ctx, sn->node); REF_JS(obj);