[libdazzle] tree: plug leak of GIcon and emblem list
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tree: plug leak of GIcon and emblem list
- Date: Sat, 28 Jul 2018 07:27:29 +0000 (UTC)
commit 4638e8e65a31d4ac3f40e2bf00abb0fb4c5a9612
Author: Christian Hergert <chergert redhat com>
Date: Sat Jul 28 00:27:09 2018 -0700
tree: plug leak of GIcon and emblem list
src/tree/dzl-tree-node.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/tree/dzl-tree-node.c b/src/tree/dzl-tree-node.c
index f53d8a3..4c99bb1 100644
--- a/src/tree/dzl-tree-node.c
+++ b/src/tree/dzl-tree-node.c
@@ -722,8 +722,12 @@ dzl_tree_node_finalize (GObject *object)
DzlTreeNode *self = DZL_TREE_NODE (object);
g_clear_object (&self->item);
+ g_clear_object (&self->gicon);
dzl_clear_pointer (&self->text, g_free);
+ g_list_free_full (self->emblems, g_free);
+ self->emblems = NULL;
+
dzl_clear_weak_pointer (&self->tree);
dzl_clear_weak_pointer (&self->parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]