diff options
author | Stefan Agner <stefan@agner.ch> | 2019-06-20 22:54:54 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-13 14:22:30 +0000 |
commit | c3c0b247a05da46eb032320f38428767acc26910 (patch) | |
tree | 4735dd09fd68c9a55c6277e13fe65c238266ad04 | |
parent | 483cc636699977b48f9d1fa32a421189be0061a1 (diff) |
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>
-rw-r--r-- | libweston/backend-rdp/rdp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libweston/backend-rdp/rdp.c b/libweston/backend-rdp/rdp.c index 6aec15d2..ce91cedd 100644 --- a/libweston/backend-rdp/rdp.c +++ b/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; |