Fix some memory leaks

This commit is contained in:
LRFLEW authored and Michael Steenbeek committed 2018-10-04 09:42:22 +02:00
1 parent 82107e5666
commit c41f862920
3 files changed
+10 -5

No files matched your search

+1 -1
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);
}