jscript: Fix refcounting the object prototype fallback.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9a5f4b95db
commit
59bb402bf1
|
@ -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))
|
if(is_object_instance(val) && get_object(val))
|
||||||
prot = iface_to_jsdisp(get_object(val));
|
prot = iface_to_jsdisp(get_object(val));
|
||||||
else
|
else
|
||||||
prot = ctx->object_prototype;
|
prot = jsdisp_addref(ctx->object_prototype);
|
||||||
|
|
||||||
jsval_release(val);
|
jsval_release(val);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue