Skip to content
Snippets Groups Projects
Commit fcdd8526 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard
Browse files

jscript: Fixed memory leaks.

parent 053d1731
Branches
Tags
No related merge requests found
......@@ -1585,6 +1585,7 @@ static HRESULT interp_array(exec_ctx_t *ctx)
}
hres = to_string(ctx->parser->script, namev, &ctx->ei, &name);
VariantClear(namev);
if(FAILED(hres)) {
IDispatch_Release(obj);
return hres;
......@@ -2701,6 +2702,8 @@ static HRESULT interp_postinc(exec_ctx_t *ctx)
num_set_val(&inc, num_val(&n)+(double)arg);
hres = disp_propput(ctx->parser->script, obj, id, &inc, &ctx->ei, NULL/*FIXME*/);
}
if(FAILED(hres))
VariantClear(&v);
}
IDispatch_Release(obj);
if(FAILED(hres))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment