diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-29 08:00:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-29 08:00:59 -0400 |
commit | a0f490306395ac3705c00ecc85b4a0bba721886e (patch) | |
tree | f5893498ca64b24883e8a1b9f571ea54359efad3 /backend/libinput | |
parent | 795d4071db1ae504e8f5748005513d89ec7064ea (diff) | |
parent | f8e0a034512d4c5a69dde4f5cd02df53af216b72 (diff) |
Merge pull request #926 from emersion/fix-x11-backend-memory-leaks
Fix some backend memory leaks
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/keyboard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c index d8dd8878..e17191e3 100644 --- a/backend/libinput/keyboard.c +++ b/backend/libinput/keyboard.c @@ -13,7 +13,8 @@ struct wlr_libinput_keyboard { }; static void keyboard_set_leds(struct wlr_keyboard *wlr_kb, uint32_t leds) { - struct wlr_libinput_keyboard *wlr_libinput_kb = (struct wlr_libinput_keyboard *)wlr_kb; + struct wlr_libinput_keyboard *wlr_libinput_kb = + (struct wlr_libinput_keyboard *)wlr_kb; libinput_device_led_update(wlr_libinput_kb->libinput_dev, leds); } @@ -21,6 +22,7 @@ static void keyboard_destroy(struct wlr_keyboard *wlr_kb) { struct wlr_libinput_keyboard *wlr_libinput_kb = (struct wlr_libinput_keyboard *)wlr_kb; libinput_device_unref(wlr_libinput_kb->libinput_dev); + free(wlr_libinput_kb); } struct wlr_keyboard_impl impl = { |