mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +01:00
Plug memory leaks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user