1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-18 12:33:17 +01:00

Plug memory leaks

This commit is contained in:
Michał Janiszewski
2016-12-19 23:44:17 +01:00
parent 2fca2adbc1
commit 7f5683895b
3 changed files with 7 additions and 2 deletions

View File

@@ -40,7 +40,9 @@ namespace String
va_start(args, format);
const utf8 * buffer = Format_VA(format, args);
va_end(args);
return ToStd(buffer);
std::string returnValue = ToStd(buffer);
Memory::Free(buffer);
return returnValue;
}
bool IsNullOrEmpty(const utf8 * str)