diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-03-21 15:28:36 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-03-21 15:33:58 +0100 |
commit | 0e7884f1a7352b05ea8d40c9638e91acb0fa7407 (patch) | |
tree | 7cd6f835a158794c64e8a2d94d169c7db5b70bf0 /gtk/a11y | |
parent | 980c62a1390759c773809d1e483a1fa8444c7331 (diff) | |
download | gtk+-0e7884f1a7352b05ea8d40c9638e91acb0fa7407.tar.gz |
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
Diffstat (limited to 'gtk/a11y')
-rw-r--r-- | gtk/a11y/gtkpopoveraccessible.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/a11y/gtkpopoveraccessible.c b/gtk/a11y/gtkpopoveraccessible.c index b72692506a..55eaaed9c6 100644 --- a/gtk/a11y/gtkpopoveraccessible.c +++ b/gtk/a11y/gtkpopoveraccessible.c @@ -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, |