jscript: Removed SysFreeString calls missed in previous patch.

This commit is contained in:
Jacek Caban 2012-10-12 11:48:18 +02:00 committed by Alexandre Julliard
parent cba98a2d8e
commit ec8a57b6de
1 changed files with 2 additions and 7 deletions

View File

@ -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;