[pango/fix-test-leak: 2/2] tests: Plug a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/fix-test-leak: 2/2] tests: Plug a memory leak
- Date: Sat, 23 Jan 2021 18:22:16 +0000 (UTC)
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]