backend-rdp: unref keymap after associating with seat
The function weston_seat_init_keyboard makes sure that it has its own reference to keymap, hence we can safely drop our reference. This is similarly done in the X11 backend. It avoids leaking a struct xkb_keymap per connection. Signed-off-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
parent
483cc63669
commit
c3c0b247a0
@ -1064,6 +1064,7 @@ xf_peer_activate(freerdp_peer* client)
|
||||
|
||||
weston_seat_init(peersItem->seat, b->compositor, seat_name);
|
||||
weston_seat_init_keyboard(peersItem->seat, keymap);
|
||||
xkb_keymap_unref(keymap);
|
||||
weston_seat_init_pointer(peersItem->seat);
|
||||
|
||||
peersItem->flags |= RDP_PEER_ACTIVATED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user