Commit d18dcecb authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

xwayland: Clean up pending eglstream on pixmap destroy



EGLStream implementation in Xwayland keeps a list of pending streams for
a window.

If the windows's pixmap is destroyed while there is a pending stream,
the pending stream will point to freed memory once the callback is
triggered.

Make sure to cancel the pending stream if there's one when the pixmap is
destroyed.

v2:
 * Use xorg_list_for_each_entry() instead of the safe variant (Michel
   Dänzer <mdaenzer@redhat.com>)
Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Tested-by: Karol Szuster's avatarKarol Szuster <karolsz9898@gmail.com>
Acked-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
Closes xorg/xserver#1096
parent 662b2bcb
Pipeline #233729 passed with stages
in 5 minutes and 32 seconds