mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
X11: Fix memory leak in handle_key_event
Extracted from #27189.
(cherry picked from commit d191ffb47d)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user