[libdazzle/libdazzle-3-26] tree: don't leak dzl tree node in text func



commit 7c320042e3c4c82d02c98020ec1d35f0297e2816
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jan 9 18:59:08 2018 -0800

    tree: don't leak dzl tree node in text func

 src/tree/dzl-tree.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/dzl-tree.c b/src/tree/dzl-tree.c
index d7502c6..c0b0261 100644
--- a/src/tree/dzl-tree.c
+++ b/src/tree/dzl-tree.c
@@ -437,6 +437,8 @@ text_func (GtkCellLayout   *cell_layout,
                     use_markup ? "markup" : "text", text,
                     "foreground-rgba", rgba,
                     NULL);
+
+      g_object_unref (node);
     }
 }
 


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