[pango/fix-test-leak: 2/2] tests: Plug a memory leak




commit 0df958b161d44a92eef61c4198ddfa2d6ae8045c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 23 13:21:26 2021 -0500

    tests: Plug a memory leak
    
    We just plugged all the memory leaks in tests,
    lets not introduce new ones.

 tests/testmisc.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/testmisc.c b/tests/testmisc.c
index 48f60ee9..1697b7cd 100644
--- a/tests/testmisc.c
+++ b/tests/testmisc.c
@@ -64,6 +64,7 @@ test_itemize_utf8 (void)
   result = pango_itemize_with_base_dir (context, PANGO_DIRECTION_LTR, "\xc3\xa1\na", 3, 1, NULL, NULL);
   g_assert (result != NULL);
 
+  g_list_free_full (result, (GDestroyNotify)pango_item_free);
   g_object_unref (context);
 }
 


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