jscript: Fixed memory leaks.
This commit is contained in:
parent
053d1731fe
commit
fcdd85267d
|
@ -1585,6 +1585,7 @@ static HRESULT interp_array(exec_ctx_t *ctx)
|
||||||
}
|
}
|
||||||
|
|
||||||
hres = to_string(ctx->parser->script, namev, &ctx->ei, &name);
|
hres = to_string(ctx->parser->script, namev, &ctx->ei, &name);
|
||||||
|
VariantClear(namev);
|
||||||
if(FAILED(hres)) {
|
if(FAILED(hres)) {
|
||||||
IDispatch_Release(obj);
|
IDispatch_Release(obj);
|
||||||
return hres;
|
return hres;
|
||||||
|
@ -2701,6 +2702,8 @@ static HRESULT interp_postinc(exec_ctx_t *ctx)
|
||||||
num_set_val(&inc, num_val(&n)+(double)arg);
|
num_set_val(&inc, num_val(&n)+(double)arg);
|
||||||
hres = disp_propput(ctx->parser->script, obj, id, &inc, &ctx->ei, NULL/*FIXME*/);
|
hres = disp_propput(ctx->parser->script, obj, id, &inc, &ctx->ei, NULL/*FIXME*/);
|
||||||
}
|
}
|
||||||
|
if(FAILED(hres))
|
||||||
|
VariantClear(&v);
|
||||||
}
|
}
|
||||||
IDispatch_Release(obj);
|
IDispatch_Release(obj);
|
||||||
if(FAILED(hres))
|
if(FAILED(hres))
|
||||||
|
|
Loading…
Reference in New Issue