mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-20 14:53:30 +00:00
terminal: free xkb state on keyboard destruction
Fix leaking the xkb-state during keyboard destruction, leaking lots of xkb references into the wild.
This commit is contained in:
@@ -550,6 +550,7 @@ int idev_keyboard_new(idev_device **out, idev_session *s, const char *name) {
|
||||
static void keyboard_free(idev_device *d) {
|
||||
idev_keyboard *k = keyboard_from_device(d);
|
||||
|
||||
xkb_state_unref(k->xkb_state);
|
||||
free(k->repdata.keyboard.codepoints);
|
||||
free(k->repdata.keyboard.keysyms);
|
||||
free(k->evdata.keyboard.codepoints);
|
||||
|
||||
Reference in New Issue
Block a user