mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05: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:
parent
b1b403254d
commit
2ef6490323
@ -625,12 +625,13 @@ meta_wayland_surface_state_merge_into (MetaWaylandSurfaceState *from,
|
||||
to->subsurface_placement_ops =
|
||||
g_slist_concat (to->subsurface_placement_ops,
|
||||
from->subsurface_placement_ops);
|
||||
from->subsurface_placement_ops = NULL;
|
||||
}
|
||||
else
|
||||
{
|
||||
to->subsurface_placement_ops = from->subsurface_placement_ops;
|
||||
}
|
||||
|
||||
from->subsurface_placement_ops = NULL;
|
||||
}
|
||||
|
||||
wl_list_insert_list (&to->presentation_feedback_list,
|
||||
|
Loading…
Reference in New Issue
Block a user