summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-11-12 07:51:51 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-11-12 07:51:51 +0100
commitd191ffb47ddd50df470ef1714c7df6b4da9c7bca (patch)
tree002662560ae05757635ee2db7d7f5e97b31e1ba6 /platform/x11
parent067c259ef139a1d60b64386ff596dfea690aa06d (diff)
X11: Fix memory leak in handle_key_event
Extracted from #27189.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/os_x11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index c695d657e7..54d3759cc5 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -1866,6 +1866,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) {
input->accumulate_input_event(k);
}
+ memfree(utf8string);
return;
}
memfree(utf8string);