test/state: fix missing xkb_state_unref

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2013-09-25 10:05:26 +03:00
parent dbf07de14d
commit 59fb79e75e
1 changed files with 2 additions and 0 deletions

View File

@ -416,6 +416,8 @@ test_caps_keysym_transformation(struct xkb_keymap *keymap)
assert(xkb_state_mod_index_is_active(state, shift, XKB_STATE_MODS_EFFECTIVE) == 0); assert(xkb_state_mod_index_is_active(state, shift, XKB_STATE_MODS_EFFECTIVE) == 0);
xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_DOWN); xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_DOWN);
xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_UP); xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_UP);
xkb_state_unref(state);
} }
int int