mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
a11y: Remove weak reference when updating a GtkPopoverAccessible relative-to widget
Otherwise the weak reference is left dangling, which later causes issues at the time of destroying that widget. https://bugzilla.gnome.org/show_bug.cgi?id=726749
This commit is contained in:
parent
980c62a139
commit
0e7884f1a7
@ -49,6 +49,8 @@ popover_update_relative_to (AtkObject *obj,
|
||||
|
||||
if (priv->widget)
|
||||
{
|
||||
g_object_remove_weak_pointer (G_OBJECT (priv->widget),
|
||||
(gpointer*) &priv->widget);
|
||||
widget_accessible = gtk_widget_get_accessible (priv->widget);
|
||||
atk_object_remove_relationship (obj,
|
||||
ATK_RELATION_POPUP_FOR,
|
||||
|
Loading…
Reference in New Issue
Block a user