mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
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:
parent
b2e19866ea
commit
ac931e9506
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user