wayland/color-management: Handle inert feedback surfaces
When a surface is destroyed, the existing feedback surfaces are marked
as inert by setting the wl_resource user_data to NULL. This wasn't
handled in the feedback surface destructor.
Fixes: 2341346c90
("wayland: Implement the color management protocol v4")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4000>
This commit is contained in:
parent
e4004a7c4f
commit
b20e0370aa
1 changed files with 3 additions and 0 deletions
|
@ -1204,6 +1204,9 @@ color_management_feedback_surface_destructor (struct wl_resource *resource)
|
|||
MetaWaylandColorManagementSurface *cm_surface =
|
||||
wl_resource_get_user_data (resource);
|
||||
|
||||
if (!cm_surface)
|
||||
return;
|
||||
|
||||
cm_surface->feedback_resources =
|
||||
g_list_remove (cm_surface->feedback_resources, resource);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue