mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[quickjs] window.c Do not decref function
This commit is contained in:
parent
748407dee5
commit
8846617b96
@ -267,8 +267,6 @@ js_window_setTimeout(JSContext *ctx, JSValueConst this_val, int argc, JSValueCon
|
||||
if (JS_IsFunction(ctx, func)) {
|
||||
timer_id_T id = ecmascript_set_timeout2q(interpreter, JS_DupValue(ctx, func), timeout);
|
||||
|
||||
JS_FreeValue(ctx, func);
|
||||
|
||||
return JS_NewInt64(ctx, (int64_t)(id));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user