1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Fix some memory leaks

This commit is contained in:
LRFLEW
2018-10-04 01:42:22 -06:00
committed by Michael Steenbeek
parent 82107e5666
commit c41f862920
3 changed files with 10 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ void StringTable::SetString(uint8_t id, uint8_t language, const std::string& tex
StringTableEntry entry;
entry.Id = id;
entry.LanguageId = language;
entry.Text = String::Duplicate(text);
entry.Text = text;
_strings.push_back(entry);
}