mirror of
https://github.com/brl/mutter.git
synced 2025-08-06 08:34:41 +00:00
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:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user