cally: avoid creating accessible during actor removal

If the ClutterActor does not have an accessible created, then avoid
requesting one. Without this, we risk creating an accessible during
the removal of the actor.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1083
This commit is contained in:
Christian Hergert 2020-02-23 14:07:45 -08:00 committed by Christian Hergert
parent 629a4b4c21
commit a3fc65185b

View File

@ -600,10 +600,11 @@ cally_actor_real_remove_actor (ClutterActor *container,
g_return_val_if_fail (CLUTTER_IS_ACTOR (actor), 0);
atk_parent = ATK_OBJECT (data);
atk_child = clutter_actor_get_accessible (actor);
if (atk_child)
if (clutter_actor_has_accessible (actor))
{
atk_child = clutter_actor_get_accessible (actor);
g_value_init (&values.old_value, G_TYPE_POINTER);
g_value_set_pointer (&values.old_value, atk_parent);