input: Don't leak the initial keymap

weston_xkb_info_create() takes ownership of the xkb_keymap instance so
we should drop our reference or we would leak it later if the keymap
was changed.
dev
Rui Matos 11 years ago committed by Kristian Høgsberg
parent b0420aeb3d
commit 73d9395e68
  1. 1
      src/input.c

@ -1954,6 +1954,7 @@ weston_compositor_build_global_keymap(struct weston_compositor *ec)
}
ec->xkb_info = weston_xkb_info_create(keymap);
xkb_keymap_unref(keymap);
if (ec->xkb_info == NULL)
return -1;

Loading…
Cancel
Save