[nautilus/gnome-42] places-view: Disconnect handlers on object destruction



commit d1a061fde18646c335ba59c8cf3dc254905db641
Author: Corey Berla <corey berla me>
Date:   Fri Jul 29 14:02:14 2022 -0700

    places-view: Disconnect handlers on object destruction
    
    Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2364

 src/nautilus-places-view.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/nautilus-places-view.c b/src/nautilus-places-view.c
index 5d4eef9f0..007f53c2c 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -146,6 +146,10 @@ nautilus_places_view_finalize (GObject *object)
     NautilusPlacesView *self = (NautilusPlacesView *) object;
     NautilusPlacesViewPrivate *priv = nautilus_places_view_get_instance_private (self);
 
+    g_signal_handlers_disconnect_by_func (self, loading_cb, priv->places_view);
+    g_signal_handlers_disconnect_by_func (self, open_location_cb, priv->places_view);
+    g_signal_handlers_disconnect_by_func (self, show_error_message_cb, priv->places_view);
+
     g_clear_object (&priv->location);
     g_clear_object (&priv->search_query);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]