[pango/fix-gtk2-crash] Fix a crash in gtk2
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/fix-gtk2-crash] Fix a crash in gtk2
- Date: Wed, 10 Jun 2020 13:42:57 +0000 (UTC)
commit 89ca7a4299b873746e3b6c1e1260ee8430b63fd4
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 10 09:41:03 2020 -0400
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]