Fix memory leak in StringFormat::sntimef

This commit is contained in:
baldurk
2015-01-05 00:34:03 +00:00
parent 206704fe12
commit ef03332408
+2
View File
@@ -282,6 +282,8 @@ namespace StringFormat
string result = StringFormat::Wide2UTF8(wstring(buf));
delete[] buf;
if(result.length()+1 < bufSize)
{
memcpy(str, result.c_str(), result.length());