mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-06 05:38:05 +02:00
screen-share: Use wl_list_for_each_safe on destroy
Destroying the shared seat removes the link from so->seat_list. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
f81959e39d
commit
f589dac2b0
1 changed files with 2 additions and 2 deletions
|
|
@ -884,7 +884,7 @@ shared_output_create(struct weston_output *output, int parent_fd)
|
|||
{
|
||||
struct shared_output *so;
|
||||
struct wl_event_loop *loop;
|
||||
struct ss_seat *seat;
|
||||
struct ss_seat *seat, *tmp;
|
||||
int epoll_fd;
|
||||
|
||||
so = zalloc(sizeof *so);
|
||||
|
|
@ -972,7 +972,7 @@ shared_output_create(struct weston_output *output, int parent_fd)
|
|||
return so;
|
||||
|
||||
err_display:
|
||||
wl_list_for_each(seat, &so->seat_list, link)
|
||||
wl_list_for_each_safe(seat, tmp, &so->seat_list, link)
|
||||
ss_seat_destroy(seat);
|
||||
wl_display_disconnect(so->parent.display);
|
||||
err_alloc:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue