forked from rosebudai/OpenRCT2-Web
Fix some memory leaks
This commit is contained in:
1 parent
82107e5666
commit
c41f862920
3 files changed
+10
-5
No files matched your search
@@ -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