From a994f4edfb744b83e392d1b8dd8689b5b146ce01 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 3 Mar 2015 13:34:03 +0100 Subject: [PATCH] filechooser: Disconnect signal handlers from search engine before destroying The search engine might stay alive longer due to extra temporary refs, so the signal handlers should be removed for the filechooser to ignore these properly. https://bugzilla.gnome.org/show_bug.cgi?id=745479 --- gtk/gtkfilechooserwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfilechooserwidget.c b/gtk/gtkfilechooserwidget.c index 76512e0b8b..8789f3f276 100644 --- a/gtk/gtkfilechooserwidget.c +++ b/gtk/gtkfilechooserwidget.c @@ -6205,7 +6205,7 @@ search_stop_searching (GtkFileChooserWidget *impl, if (priv->search_engine) { _gtk_search_engine_stop (priv->search_engine); - + g_signal_handlers_disconnect_by_data (priv->search_engine, impl); g_object_unref (priv->search_engine); priv->search_engine = NULL; }