mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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:
parent
629a4b4c21
commit
a3fc65185b
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user