summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-17 20:23:09 +0200
committerTimm Bäder <mail@baedert.org>2020-06-08 19:18:13 +0200
commit9b7b67f5e01397de03bf46bb5f8446c30952fb33 (patch)
tree9c17885196614f0de5b1068b3be69213d3f7a20b /pango/pango-layout.c
parentc1943bd42fb4390a133dce0e2ec80da7306ba79c (diff)
downloadpango-9b7b67f5e01397de03bf46bb5f8446c30952fb33.tar.gz
layout: Unconditionally unref attr lists
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 07a32664..11e14418 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -4411,11 +4411,8 @@ pango_layout_check_lines (PangoLayout *layout)
_pango_attr_iterator_destroy (&iter);
}
- if (shape_attrs)
- pango_attr_list_unref (shape_attrs);
-
- if (attrs)
- pango_attr_list_unref (attrs);
+ pango_attr_list_unref (shape_attrs);
+ pango_attr_list_unref (attrs);
}
#pragma GCC diagnostic pop