From d88b1bd09b2151a59b15cd6ab316449a8613477c Mon Sep 17 00:00:00 2001 From: Quentin Glidic Date: Sat, 3 Jun 2017 14:26:25 +0200 Subject: xcb: Be sure not to leak xkb keymap/state Signed-off-by: Quentin Glidic --- source/xcb.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source') diff --git a/source/xcb.c b/source/xcb.c index 7bc80a84..e74904cb 100644 --- a/source/xcb.c +++ b/source/xcb.c @@ -967,6 +967,8 @@ gboolean display_setup ( GMainLoop *main_loop, NkBindings *bindings ) } nk_bindings_seat_update_keymap ( xcb->bindings_seat, keymap, state ); + xkb_state_unref(state); + xkb_keymap_unref(keymap); // determine numlock mask so we can bind on keys with and without it x11_create_frequently_used_atoms ( ); -- cgit v1.2.3