diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 58f50f072d9..397e8a25bd4 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -1665,6 +1665,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) { input->accumulate_input_event(k); } + memfree(utf8string); return; } memfree(utf8string);