mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[quickjs] Do not FreeValue
This commit is contained in:
parent
786469da5f
commit
948c22ea79
@ -1476,7 +1476,6 @@ js_document_getElementsByTagName(JSContext *ctx, JSValueConst this_val, int argc
|
||||
return JS_NULL;
|
||||
}
|
||||
JSValue rr = getNodeList(ctx, nodes);
|
||||
JS_FreeValue(ctx, rr);
|
||||
|
||||
RETURN_JS(rr);
|
||||
}
|
||||
|
@ -242,7 +242,6 @@ js_element_get_property_children(JSContext *ctx, JSValueConst this_val)
|
||||
return JS_NULL;
|
||||
}
|
||||
JSValue rr = getNodeList(ctx, nodes);
|
||||
JS_FreeValue(ctx, rr);
|
||||
|
||||
RETURN_JS(rr);
|
||||
}
|
||||
@ -295,7 +294,6 @@ js_element_get_property_childNodes(JSContext *ctx, JSValueConst this_val)
|
||||
return JS_NULL;
|
||||
}
|
||||
JSValue rr = getNodeList(ctx, nodes);
|
||||
JS_FreeValue(ctx, rr);
|
||||
|
||||
RETURN_JS(rr);
|
||||
}
|
||||
@ -2559,7 +2557,6 @@ js_element_getElementsByTagName(JSContext *ctx, JSValueConst this_val, int argc,
|
||||
return JS_NULL;
|
||||
}
|
||||
JSValue rr = getNodeList(ctx, nlist);
|
||||
JS_FreeValue(ctx, rr);
|
||||
|
||||
RETURN_JS(rr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user