jscript: Fixed leak in disp_propget.

This commit is contained in:
Jacek Caban 2012-11-09 11:48:34 +01:00 committed by Alexandre Julliard
parent 780228b6ca
commit 74a83150ab
1 changed files with 3 additions and 1 deletions

View File

@ -1413,7 +1413,9 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t *val
if(FAILED(hres))
return hres;
return variant_to_jsval(&var, val);
hres = variant_to_jsval(&var, val);
VariantClear(&var);
return hres;
}
HRESULT jsdisp_delete_idx(jsdisp_t *obj, DWORD idx)