aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-12 00:02:04 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-12 00:11:18 +0200
commitde86965174a5ccb6c204c52d6e57812c1fa64a24 (patch)
treedaed5db6b7ca573b22e36de8b29db4290b3ccf9b /examples
parente1293a78530a5de9280ee76e83488a2a04c95c79 (diff)
Use libinput_event_destroy/xkb_*_unref
Also sneak in a missing drmModeFreePlaneResources
Diffstat (limited to 'examples')
-rw-r--r--examples/shared.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/shared.c b/examples/shared.c
index 0605dd72..0738a548 100644
--- a/examples/shared.c
+++ b/examples/shared.c
@@ -311,6 +311,8 @@ static void keyboard_remove(struct wlr_input_device *device, struct compositor_s
if (!kbstate) {
return;
}
+ xkb_state_unref(kbstate->xkb_state);
+ xkb_map_unref(kbstate->keymap);
wl_list_remove(&kbstate->link);
wl_list_remove(&kbstate->key.link);
free(kbstate);