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:
committed by
Michael Steenbeek
parent
82107e5666
commit
c41f862920
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user