[gtk/matthiasc/for-master] treesorter tests: Add a comment



commit 87b5eadb7c3c9540b34019854d96c9b8da147bda
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 16 08:49:38 2020 -0400

    treesorter tests: Add a comment
    
    This looks like a leak, but isn't one.
    Add a comment to that effect.

 testsuite/gtk/treesorter.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/testsuite/gtk/treesorter.c b/testsuite/gtk/treesorter.c
index 6d1e314d30..59a32b5e25 100644
--- a/testsuite/gtk/treesorter.c
+++ b/testsuite/gtk/treesorter.c
@@ -69,6 +69,7 @@ model_to_string (GListModel *model)
       if (i > 0)
         g_string_append (string, " ");
       g_string_append_printf (string, "%u", get_with_parents (object));
+      /* no unref since get_with_parents consumes the ref */
     }
 
   return g_string_free (string, FALSE);


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