Commit 74a83150 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed leak in disp_propget.

parent 780228b6
...@@ -1413,7 +1413,9 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t *val ...@@ -1413,7 +1413,9 @@ HRESULT disp_propget(script_ctx_t *ctx, IDispatch *disp, DISPID id, jsval_t *val
if(FAILED(hres)) if(FAILED(hres))
return 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) HRESULT jsdisp_delete_idx(jsdisp_t *obj, DWORD idx)
......
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