[nautilus] list-view: Disconnect signal before clearing object



commit 584eab51f1fdbaad9cf400efe8166c5c9b045404
Author: António Fernandes <antoniojpfernandes gmail com>
Date:   Fri Jan 15 00:33:27 2021 +0000

    list-view: Disconnect signal before clearing object
    
    Bug introduced by me in commit 4f6013e7344f030da86aeed9d0d2e3b658a1a429
    
    Found thanks to the criticals it was causing when leaving list view.

 src/nautilus-list-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index ff4ca50de..97e3d19d8 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -3749,11 +3749,11 @@ nautilus_list_view_finalize (GObject *object)
 
     g_cancellable_cancel (list_view->details->starred_cancellable);
     g_clear_object (&list_view->details->starred_cancellable);
-    g_clear_object (&list_view->details->tag_manager);
 
     g_signal_handlers_disconnect_by_func (list_view->details->tag_manager,
                                           on_starred_files_changed,
                                           list_view);
+    g_clear_object (&list_view->details->tag_manager);
 
     g_free (list_view->details);
 


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