backend-rdp: unregister events before shuting down compositor

Like the other backends we should unregister events before
shutting down the compositor.

Signed-off-by: Stefan Agner <stefan@agner.ch>
dev
Stefan Agner 5 years ago committed by Simon Ser
parent a8da208453
commit 163f26f520
  1. 8
      libweston/backend-rdp/rdp.c

@ -665,15 +665,15 @@ rdp_destroy(struct weston_compositor *ec)
struct weston_head *base, *next;
int i;
for (i = 0; i < MAX_FREERDP_FDS; i++)
if (b->listener_events[i])
wl_event_source_remove(b->listener_events[i]);
weston_compositor_shutdown(ec);
wl_list_for_each_safe(base, next, &ec->head_list, compositor_link)
rdp_head_destroy(to_rdp_head(base));
for (i = 0; i < MAX_FREERDP_FDS; i++)
if (b->listener_events[i])
wl_event_source_remove(b->listener_events[i]);
freerdp_listener_free(b->listener);
free(b->server_cert);

Loading…
Cancel
Save