mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
[quickjs] dom_node_unref after getElement
This commit is contained in:
parent
9d2a83b09c
commit
e050734266
@ -3240,8 +3240,10 @@ js_element_querySelector(JSContext *ctx, JSValueConst this_val, int argc, JSValu
|
||||
return JS_NULL;
|
||||
}
|
||||
//dom_node_unref(el);
|
||||
JSValue rr = getElement(ctx, ret);
|
||||
dom_node_unref((dom_node *)ret);
|
||||
|
||||
return getElement(ctx, ret);
|
||||
return rr;
|
||||
}
|
||||
|
||||
static JSValue
|
||||
|
Loading…
Reference in New Issue
Block a user