summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-12 08:40:23 +0100
committerGitHub <noreply@github.com>2019-11-12 08:40:23 +0100
commit1d0bd3eb71c8c7905f12dd9c5490f2560d07db78 (patch)
tree73e523ef11092bec5f0f929b960e2a83a21c21b2 /platform
parent88a8f9ab36f0523d602443134d3f88d7492b822e (diff)
parentd191ffb47ddd50df470ef1714c7df6b4da9c7bca (diff)
Merge pull request #33555 from akien-mga/x11-memleak-utf8string
X11: Fix memory leak in handle_key_event
Diffstat (limited to 'platform')
-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);