1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-20 01:46:15 -04:00

[quickjs] dom_node_unref after getElement

This commit is contained in:
Witold Filipczyk 2024-08-03 19:29:33 +02:00
parent 9d2a83b09c
commit e050734266

View File

@ -3240,8 +3240,10 @@ js_element_querySelector(JSContext *ctx, JSValueConst this_val, int argc, JSValu
return JS_NULL; return JS_NULL;
} }
//dom_node_unref(el); //dom_node_unref(el);
JSValue rr = getElement(ctx, ret);
dom_node_unref((dom_node *)ret);
return getElement(ctx, ret); return rr;
} }
static JSValue static JSValue