mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove String::Duplicate in TextComposition.cpp
This commit is contained in:
parent
f893a60ec5
commit
a7ef031430
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue