[gtk/matthiasc/for-master: 12/12] treesorter tests: Plug a leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 12/12] treesorter tests: Plug a leak
- Date: Thu, 16 Jul 2020 12:55:57 +0000 (UTC)
commit 28920f1b8ec36f167a8e01e08ca96f8f334d4b51
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jul 16 08:49:38 2020 -0400
treesorter tests: Plug a leak
g_list_model_get_item is transfer full.
testsuite/gtk/treesorter.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/testsuite/gtk/treesorter.c b/testsuite/gtk/treesorter.c
index 6d1e314d30..3c0efcbf61 100644
--- a/testsuite/gtk/treesorter.c
+++ b/testsuite/gtk/treesorter.c
@@ -69,6 +69,8 @@ model_to_string (GListModel *model)
if (i > 0)
g_string_append (string, " ");
g_string_append_printf (string, "%u", get_with_parents (object));
+
+ g_object_unref (object);
}
return g_string_free (string, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]