X11: Fix memory leak in handle_key_event

Extracted from #27189.

(cherry picked from commit d191ffb47d)
This commit is contained in:
Rémi Verschelde 2019-11-12 07:51:51 +01:00
parent 9360b23544
commit 716f7c3d32
1 changed files with 1 additions and 0 deletions

View File

@ -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);