[pango: 2/3] tests: Free the sizes array, if it was allocated




commit 911d8d59344978ed10b6fee2c8728ce75137fbdb
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date:   Fri Jul 2 00:17:10 2021 +0200

    tests: Free the sizes array, if it was allocated

 tests/test-font.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/tests/test-font.c b/tests/test-font.c
index 52db3027..d6ffc1a6 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -347,6 +347,7 @@ test_font_models (void)
 
           pango_font_face_list_sizes (PANGO_FONT_FACE (obj2), &sizes, &n_sizes);
           g_assert_true ((sizes == NULL) == (n_sizes == 0));
+          g_free (sizes);
 
           g_object_unref (obj2);
         }


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