popover: Remove signal handlers in dispose

If we don't, they may get triggered at an inopportune
time later, causing us to crash.

See
https://bugzilla.redhat.com/show_bug.cgi?id=1203499

https://bugzilla.gnome.org/show_bug.cgi?id=747539
This commit is contained in:
Matthias Clasen 2015-04-08 20:20:38 -04:00
parent b2e19866ea
commit ac931e9506

View File

@ -304,7 +304,10 @@ gtk_popover_dispose (GObject *object)
GtkPopoverPrivate *priv = popover->priv;
if (priv->window)
_gtk_window_remove_popover (priv->window, GTK_WIDGET (object));
{
g_signal_handlers_disconnect_by_data (priv->window, popover);
_gtk_window_remove_popover (priv->window, GTK_WIDGET (object));
}
priv->window = NULL;