From 89ca7a4299b873746e3b6c1e1260ee8430b63fd4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Jun 2020 09:41:03 -0400 Subject: Fix a crash in gtk2 Apparently, gtk2 assumes that calling pango_layout_set_attributes guarantees that the attribute list gains a ref. Fixes: #479 --- pango/pango-layout.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 3c138327..b07c8487 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -689,11 +689,6 @@ pango_layout_set_attributes (PangoLayout *layout, if (!attrs && !layout->attrs) return; - /* Also both empty */ - if (!_pango_attr_list_has_attributes (layout->attrs) && - !_pango_attr_list_has_attributes (attrs)) - return; - if (layout->attrs && pango_attr_list_equal (layout->attrs, attrs)) return; -- cgit v1.2.1