summaryrefslogtreecommitdiff
path: root/tests/test-font.c
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2021-07-02 00:17:10 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2021-07-02 00:17:10 +0200
commit911d8d59344978ed10b6fee2c8728ce75137fbdb (patch)
tree0e4eb281aed18ca23e06491ea970cee2736aaeda /tests/test-font.c
parenta492afdb4a6c2efbb66296a2aff58fe1afc6f78b (diff)
downloadpango-911d8d59344978ed10b6fee2c8728ce75137fbdb.tar.gz
tests: Free the sizes array, if it was allocated
Diffstat (limited to 'tests/test-font.c')
-rw-r--r--tests/test-font.c1
1 files changed, 1 insertions, 0 deletions
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);
}