mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
jscript: Fixed memory leaks.
Spotted by Piotr.
This commit is contained in:
parent
400c887e85
commit
172fa4fa99
@ -2290,6 +2290,8 @@ HRESULT interp_add(exec_ctx_t *ctx)
|
|||||||
TRACE("%s + %s\n", debugstr_variant(l), debugstr_variant(r));
|
TRACE("%s + %s\n", debugstr_variant(l), debugstr_variant(r));
|
||||||
|
|
||||||
hres = add_eval(ctx->parser->script, l, r, &ctx->ei, &ret);
|
hres = add_eval(ctx->parser->script, l, r, &ctx->ei, &ret);
|
||||||
|
VariantClear(l);
|
||||||
|
VariantClear(r);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
@ -3362,6 +3364,7 @@ static HRESULT interp_tree(exec_ctx_t *ctx)
|
|||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
hres = exprval_to_value(ctx->parser->script, &val, &ctx->ei, &v);
|
hres = exprval_to_value(ctx->parser->script, &val, &ctx->ei, &v);
|
||||||
|
exprval_release(&val);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
return hres;
|
return hres;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user