Plug memory leak in DataSerialiser

This commit is contained in:
Michał Janiszewski 2021-01-19 22:11:08 +01:00
parent 4bcf68d84a
commit 4a21676d17
1 changed files with 1 additions and 0 deletions

View File

@ -620,6 +620,7 @@ template<> struct DataSerializerTraits_t<rct_object_entry>
val.flags = ByteSwapBE(temp);
const char* str = stream->ReadArray<char>(12);
memcpy(val.nameWOC, str, 12);
Memory::FreeArray(str, 12);
}
static void log(OpenRCT2::IStream* stream, const rct_object_entry& val)
{