aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-29 08:00:59 -0400
committerGitHub <noreply@github.com>2018-04-29 08:00:59 -0400
commita0f490306395ac3705c00ecc85b4a0bba721886e (patch)
treef5893498ca64b24883e8a1b9f571ea54359efad3 /backend/libinput
parent795d4071db1ae504e8f5748005513d89ec7064ea (diff)
parentf8e0a034512d4c5a69dde4f5cd02df53af216b72 (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.c4
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 = {