1
0
Fork 0

wayland/surface: Do not free placement ops of cached state

The list gets freed in `meta_wayland_surface_state_clear()`
if the pointer is still set.

Fixes ba8499f9ec

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1783>
This commit is contained in:
Robert Mader 2021-03-14 02:08:03 +01:00 committed by Marge Bot
parent b1b403254d
commit 2ef6490323

View file

@ -625,12 +625,13 @@ meta_wayland_surface_state_merge_into (MetaWaylandSurfaceState *from,
to->subsurface_placement_ops = to->subsurface_placement_ops =
g_slist_concat (to->subsurface_placement_ops, g_slist_concat (to->subsurface_placement_ops,
from->subsurface_placement_ops); from->subsurface_placement_ops);
from->subsurface_placement_ops = NULL;
} }
else else
{ {
to->subsurface_placement_ops = from->subsurface_placement_ops; to->subsurface_placement_ops = from->subsurface_placement_ops;
} }
from->subsurface_placement_ops = NULL;
} }
wl_list_insert_list (&to->presentation_feedback_list, wl_list_insert_list (&to->presentation_feedback_list,