mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-30 14:22:07 +00:00
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.
This commit is contained in:
parent
b0420aeb3d
commit
73d9395e68
|
@ -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…
Reference in a new issue