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:
Carlos Garnacho 2014-03-21 15:28:36 +01:00
parent 980c62a139
commit 0e7884f1a7

View File

@ -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,