mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix memory leak when adding title sequence.
The constructor of std::string already duplicates the string.
This commit is contained in:
parent
bed408ef3f
commit
daeeb5f827
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue