X11: Fix memory leak in handle_key_event
Extracted from #27189.
(cherry picked from commit d191ffb47d
)
This commit is contained in:
parent
9360b23544
commit
716f7c3d32
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue