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>
This commit is contained in:
parent
a8da208453
commit
163f26f520
@ -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…
Reference in New Issue
Block a user