diff options
author | emersion <contact@emersion.fr> | 2018-04-28 12:47:28 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-04-28 12:48:05 +0100 |
commit | 79da4c175eca6f2db5e167a9e3c40ef343d6cd87 (patch) | |
tree | 1c3b6729232f2db13b96326849ad16c353de4baa /backend/libinput | |
parent | 57c36ddcb346e1e2443ad606ff214dc4a74b97b4 (diff) |
backend/headless: remove useless destructor
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 = { |