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



commit 8c296a91c8a3e410edcb6471fa713eeaa3133d25
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 30c944c8a..8b32ce686 100644
--- a/src/nautilus-places-view.c
+++ b/src/nautilus-places-view.c
@@ -145,6 +145,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]