[pango/wip/baedert/for-master: 1/3] layout: Unconditionally unref attr lists



commit 4d782aaa158927a18f71dd5c2e465cc90b27142b
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]