mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Fix memory leak in StringFormat::sntimef
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user