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
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue