mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-09 04:48:04 +02: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue