[PATCH] jscript: Fix refcounting the object prototype fallback.
6 Sep
2021
6 Sep
'21
12:01 p.m.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode(a)gmail.com> --- It gets released later. dlls/jscript/dispex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c index 345bcd2..e5d711a 100644 --- a/dlls/jscript/dispex.c +++ b/dlls/jscript/dispex.c @@ -1881,7 +1881,7 @@ HRESULT init_dispex_from_constr(jsdisp_t *dispex, script_ctx_t *ctx, const built if(is_object_instance(val) && get_object(val)) prot = iface_to_jsdisp(get_object(val)); else - prot = ctx->object_prototype; + prot = jsdisp_addref(ctx->object_prototype); jsval_release(val); } -- 2.31.1
1560
Age (days ago)
1561
Last active (days ago)
1 comments
2 participants
participants (2)
-
Gabriel Ivăncescu -
Jacek Caban