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:
parent
9d2a83b09c
commit
e050734266
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user