diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-06 22:29:28 -0500 |
---|---|---|
committer | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2021-05-05 16:42:40 +0200 |
commit | d0d45426170c8e233464e3a8d46370f1ac918e19 (patch) | |
tree | be33f925490ab77d67dc2f011240e15af9cfdbd0 /tests | |
parent | 75e077b2e69ab207fa862b9002127b0a1174de05 (diff) | |
download | pango-d0d45426170c8e233464e3a8d46370f1ac918e19.tar.gz |
tests: Don't free attributes prematurely
test-shape was using one of its attribute lists
after dropping the reference on it. Don't do that.
(cherry-picked from commit 17d8202d)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-shape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c index 6c1ae296..17eaa1e0 100644 --- a/tests/test-shape.c +++ b/tests/test-shape.c @@ -185,8 +185,6 @@ test_file (const gchar *filename, GString *string) pango_attr_list_unref (itemize_attrs); pango_attr_list_unref (shape_attrs); - pango_attr_list_unref (attrs); - for (l = items; l; l = l->next) { PangoItem *item = l->data; @@ -281,6 +279,8 @@ test_file (const gchar *filename, GString *string) g_list_free_full (items, (GDestroyNotify)pango_item_free); g_free (contents); g_free (text); + + pango_attr_list_unref (attrs); } static gchar * |