Fix memory leak when adding title sequence.

The constructor of std::string already duplicates the string.
This commit is contained in:
ceeac 2017-05-26 09:49:22 +02:00
parent bed408ef3f
commit daeeb5f827
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ namespace TitleSequenceManager
if (item.PredefinedIndex != PREDEFINED_INDEX_CUSTOM)
{
rct_string_id stringId = PredefinedSequences[item.PredefinedIndex].StringId;
item.Name = String::Duplicate(language_get_string(stringId));
item.Name = language_get_string(stringId);
}
item.IsZip = isZip;
_items.push_back(item);