Commit 9fc2863e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Fixed potential leak in RegExp lastIndex setter.

parent b0dcbbdb
......@@ -335,6 +335,7 @@ static HRESULT RegExp_set_lastIndex(script_ctx_t *ctx, jsdisp_t *jsthis, jsval_t
TRACE("\n");
jsval_release(regexp->last_index_val);
hres = jsval_copy(value, &regexp->last_index_val);
if(FAILED(hres))
return hres;
......
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