rm dupavlue and freevalue
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user