[gnome-builder/wip/gtk4-port] libide/tree: unload addins before clearing backpointer



commit 5ec8738c935b115c87a93a7ab1643074271b79a1
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 11 13:02:00 2022 -0700

    libide/tree: unload addins before clearing backpointer

 src/libide/tree/ide-tree-model.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/tree/ide-tree-model.c b/src/libide/tree/ide-tree-model.c
index aa6c7e467..21a7bf974 100644
--- a/src/libide/tree/ide-tree-model.c
+++ b/src/libide/tree/ide-tree-model.c
@@ -227,14 +227,15 @@ ide_tree_model_dispose (GObject *object)
 {
   IdeTreeModel *self = (IdeTreeModel *)object;
 
-  /* Clear the model back-pointer for root so that it cannot emit anu
+  ide_clear_and_destroy_object (&self->addins);
+
+  /* Clear the model back-pointer for root so that it cannot emit any
    * further signals on our tree model.
    */
   if (self->root != NULL)
     _ide_tree_node_set_model (self->root, NULL);
 
   g_clear_object (&self->tree);
-  ide_clear_and_destroy_object (&self->addins);
   g_clear_object (&self->root);
   g_clear_pointer (&self->kind, g_free);
 


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