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

jscript: Fix array leak in Array.filter.

parent 70087067
...@@ -1152,6 +1152,8 @@ static HRESULT Array_filter(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsign ...@@ -1152,6 +1152,8 @@ static HRESULT Array_filter(script_ctx_t *ctx, jsval_t vthis, WORD flags, unsign
if(r) if(r)
*r = jsval_obj(arr); *r = jsval_obj(arr);
else
jsdisp_release(arr);
done: done:
jsdisp_release(jsthis); jsdisp_release(jsthis);
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