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

jscript: Removed SysFreeString calls missed in previous patch.

parent cba98a2d
......@@ -714,18 +714,13 @@ static inline HRESULT create_utc_string(script_ctx_t *ctx, vdisp_t *jsthis, jsva
day = date_from_time(date->time);
date_str = jsstr_alloc_buf(len);
if(!date_str) {
SysFreeString(week);
SysFreeString(month);
if(!date_str)
return E_OUTOFMEMORY;
}
sprintfW(date_str->str, formatAD?formatADW:formatBCW, week, day, month, year,
(int)hour_from_time(date->time), (int)min_from_time(date->time),
(int)sec_from_time(date->time));
SysFreeString(week);
SysFreeString(month);
*r = jsval_string(date_str);
}
return S_OK;
......
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