From 79da4c175eca6f2db5e167a9e3c40ef343d6cd87 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 28 Apr 2018 12:47:28 +0100 Subject: backend/headless: remove useless destructor --- backend/libinput/keyboard.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/libinput') 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 = { -- cgit v1.2.3