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>
dev
Stefan Agner 6 years ago committed by Simon Ser
parent 483cc63669
commit c3c0b247a0
  1. 1
      libweston/backend-rdp/rdp.c

@ -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…
Cancel
Save