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

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

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