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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user