Commit d1f176b4 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard

jscript: Fix array ref leak when setting element.

parent 2ecf699d
...@@ -1684,7 +1684,7 @@ static HRESULT interp_carray_set(script_ctx_t *ctx) ...@@ -1684,7 +1684,7 @@ static HRESULT interp_carray_set(script_ctx_t *ctx)
array = stack_top(ctx); array = stack_top(ctx);
assert(is_object_instance(array)); assert(is_object_instance(array));
hres = jsdisp_propput_idx(iface_to_jsdisp(get_object(array)), index, value); hres = jsdisp_propput_idx(to_jsdisp(get_object(array)), index, value);
jsval_release(value); jsval_release(value);
return hres; return hres;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment