mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 00:50:42 -05:00
surface-actor-wayland: Handle stex being disposed
As the MetaShapedTexture might already got finalized, this can lead to a crash. https://gitlab.gnome.org/GNOME/mutter/merge_requests/755
This commit is contained in:
parent
77229f99b8
commit
a3c97ee535
@ -131,10 +131,12 @@ meta_surface_actor_wayland_dispose (GObject *object)
|
||||
{
|
||||
MetaSurfaceActorWayland *self = META_SURFACE_ACTOR_WAYLAND (object);
|
||||
MetaWaylandFrameCallback *cb, *next;
|
||||
MetaShapedTexture *stex =
|
||||
meta_surface_actor_get_texture (META_SURFACE_ACTOR (self));
|
||||
MetaShapedTexture *stex;
|
||||
|
||||
stex = meta_surface_actor_get_texture (META_SURFACE_ACTOR (self));
|
||||
if (stex)
|
||||
meta_shaped_texture_set_texture (stex, NULL);
|
||||
|
||||
meta_shaped_texture_set_texture (stex, NULL);
|
||||
if (self->surface)
|
||||
{
|
||||
g_object_remove_weak_pointer (G_OBJECT (self->surface),
|
||||
|
Loading…
Reference in New Issue
Block a user