xcb: Be sure not to leak xkb keymap/state

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-06-03 14:26:25 +02:00
parent 044c55dd2f
commit d88b1bd09b
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
1 changed files with 2 additions and 0 deletions

View File

@ -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 ( );