test/state: fix missing xkb_state_unref Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/test/state.c b/test/state.c
index d4e5aba..5511a61 100644
--- a/test/state.c
+++ b/test/state.c
@@ -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