Merge pull request #33555 from akien-mga/x11-memleak-utf8string

X11: Fix memory leak in handle_key_event
This commit is contained in:
Rémi Verschelde 2019-11-12 08:40:23 +01:00 committed by GitHub
commit 1d0bd3eb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1866,6 +1866,7 @@ void OS_X11::handle_key_event(XKeyEvent *p_event, bool p_echo) {
input->accumulate_input_event(k); input->accumulate_input_event(k);
} }
memfree(utf8string);
return; return;
} }
memfree(utf8string); memfree(utf8string);