diff -Naru a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c --- a/src/nautilus-window-slot.c +++ b/src/nautilus-window-slot.c @@ -1168,19 +1168,6 @@ priv->view_mode_before_search = NAUTILUS_VIEW_INVALID_ID; } -static void -nautilus_window_slot_finalize (GObject *object) -{ - NautilusWindowSlot *slot; - slot = NAUTILUS_WINDOW_SLOT (object); - - g_signal_handlers_disconnect_by_func (nautilus_preferences, - isearch_enable_changed, - slot); - - G_OBJECT_CLASS (nautilus_window_slot_parent_class)->finalize (object); -} - #define DEBUG_FLAG NAUTILUS_DEBUG_WINDOW #include "nautilus-debug.h" @@ -3026,6 +3013,10 @@ self = NAUTILUS_WINDOW_SLOT (object); priv = nautilus_window_slot_get_instance_private (self); + g_signal_handlers_disconnect_by_func (nautilus_preferences, + isearch_enable_changed, + self); + g_clear_pointer (&priv->title, g_free); G_OBJECT_CLASS (nautilus_window_slot_parent_class)->finalize (object);