jscript: Fixed BSTR leak.

oldstable
Jacek Caban 2013-02-19 12:45:56 +01:00 committed by Alexandre Julliard
parent 1926b5617d
commit ee880b28c5
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st
if(FAILED(hres))
return hres;
*str = SysAllocStringLen(jsstr->str, jsstr_length(jsstr));
*str = compiler_alloc_bstr(ctx, jsstr->str);
jsstr_release(jsstr);
break;
}