1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Remove String::Duplicate in TextComposition.cpp

This commit is contained in:
ζeh Matt
2023-02-16 19:32:32 +02:00
parent f893a60ec5
commit a7ef031430

View File

@@ -88,9 +88,7 @@ void TextComposition::HandleMessage(const SDL_Event* e)
break;
}
utf8* newText = String::Duplicate(e->text.text);
Insert(newText);
Memory::Free(newText);
Insert(e->text.text);
console.RefreshCaret(_session.SelectionStart);
WindowUpdateTextbox();