mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +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 ba8499f9ec0ca017f11bcc8e50e66302b2f73aa7 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 =
|
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…
x
Reference in New Issue
Block a user