rm dupavlue and freevalue

This commit is contained in:
2026-02-25 09:41:27 -06:00
parent 3d87fdeb5f
commit 20376aa5e4
8 changed files with 34 additions and 109 deletions

View File

@@ -90,9 +90,8 @@ static void render_frame(plm_t *mpeg, plm_frame_t *frame, void *d) {
JSValue s[1];
s[0] = surfData.val;
JSValue cb = JS_DupValue(ds->js,ds->callback);
JSValue cb = ds->callback;
JSValue cret = JS_Call(ds->js, cb, JS_NULL, 1, s);
JS_FreeValue(ds->js,cb);
JS_RestoreFrame(_js_ctx, _js_gc_frame, _js_local_frame);
free(rgb);
// TODO: raise exception