test/state: fix missing xkb_state_unref
authorRan Benita <ran234@gmail.com>
Wed, 25 Sep 2013 07:05:26 +0000 (10:05 +0300)
committerRan Benita <ran234@gmail.com>
Wed, 25 Sep 2013 07:05:26 +0000 (10:05 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
test/state.c

index d4e5aba..5511a61 100644 (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);
     xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_DOWN);
     xkb_state_update_key(state, KEY_CAPSLOCK + 8, XKB_KEY_UP);
+
+    xkb_state_unref(state);
 }
 
 int