[gnome-builder/wip/gtk4-port: 547/736] libide/tree: unload addins before clearing backpointer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 547/736] libide/tree: unload addins before clearing backpointer
- Date: Tue, 26 Apr 2022 01:46:30 +0000 (UTC)
commit 92371c3ce9175a793b32073505a2f75ee6d03f24
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]