1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Fix memory leak in TrackDesignRepository

This commit is contained in:
Michał Janiszewski
2016-10-23 22:27:44 +02:00
parent a75c1f1bc4
commit 73aede6052
3 changed files with 19 additions and 3 deletions

View File

@@ -284,10 +284,10 @@ private:
for (uint32 i = 0; i < header.NumItems; i++)
{
TrackRepositoryItem item;
item.Name = fs.ReadString();
item.Path = fs.ReadString();
item.Name = fs.ReadStdString();
item.Path = fs.ReadStdString();
item.RideType = fs.ReadValue<uint8>();
item.ObjectEntry = fs.ReadString();
item.ObjectEntry = fs.ReadStdString();
item.Flags = fs.ReadValue<uint32>();
_items.push_back(item);
}