summary refs log tree commit diff stats
path: root/qemu-keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-keymap.c')
-rw-r--r--qemu-keymap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu-keymap.c b/qemu-keymap.c
index 4095b654a6..229866e004 100644
--- a/qemu-keymap.c
+++ b/qemu-keymap.c
@@ -226,6 +226,8 @@ int main(int argc, char *argv[])
 
     state = xkb_state_new(map);
     xkb_keymap_key_for_each(map, walk_map, state);
+    xkb_state_unref(state);
+    state = NULL;
 
     /* add quirks */
     fprintf(outfile,