Commit ee880b28 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed BSTR leak.

parent 1926b561
...@@ -791,7 +791,7 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st ...@@ -791,7 +791,7 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
*str = SysAllocStringLen(jsstr->str, jsstr_length(jsstr)); *str = compiler_alloc_bstr(ctx, jsstr->str);
jsstr_release(jsstr); jsstr_release(jsstr);
break; break;
} }
......
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