diff options
author | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-03 14:26:25 +0200 |
---|---|---|
committer | Quentin Glidic <sardemff7+git@sardemff7.net> | 2017-06-03 14:26:34 +0200 |
commit | d88b1bd09b2151a59b15cd6ab316449a8613477c (patch) | |
tree | 5cb2403e42c6a36df8095f9954a6964e7d471f96 /source/xcb.c | |
parent | 044c55dd2fb8add891298891fc91a2cc89b345d6 (diff) |
xcb: Be sure not to leak xkb keymap/state
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'source/xcb.c')
-rw-r--r-- | source/xcb.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ( ); |