[pango/wip/baedert/for-master: 57/61] layout: Unconditionally unref attr lists
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/wip/baedert/for-master: 57/61] layout: Unconditionally unref attr lists
- Date: Mon, 8 Jun 2020 17:06:35 +0000 (UTC)
commit 9f8ae5393b30173803826943b3431e2e52d8538c
Author: Timm Bäder <mail baedert org>
Date: Fri Apr 17 20:23:09 2020 +0200
layout: Unconditionally unref attr lists
pango/pango-layout.c | 7 ++-----
1 file 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]