From 8102425f039536afa7c850fb239688a01e397380 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 20 Jul 2015 21:19:58 -0400 Subject: places view: Disconnect from volume monitor Just unreffing the volume monitor object won't stop it from emitting signals that we are connected to. Disconnect from the signals in finalize. --- gtk/gtkplacesview.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gtk') diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index dfd882bbff..94ab0ee993 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -368,12 +368,16 @@ activate_row (GtkPlacesView *view, } } +static void update_places (GtkPlacesView *view); + static void gtk_places_view_finalize (GObject *object) { GtkPlacesView *self = (GtkPlacesView *)object; GtkPlacesViewPrivate *priv = gtk_places_view_get_instance_private (self); + g_signal_handlers_disconnect_by_func (priv->volume_monitor, update_places, object); + if (priv->entry_pulse_timeout_id > 0) g_source_remove (priv->entry_pulse_timeout_id); -- cgit v1.2.1