[gtk/wip/baedert/single-node-window: 1/11] label: Unref style_attrs list
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/single-node-window: 1/11] label: Unref style_attrs list
- Date: Sat, 2 May 2020 16:51:57 +0000 (UTC)
commit c189faf2a9a78367647fee193a245e09e11b9d0e
Author: Timm Bäder <mail baedert org>
Date: Fri Apr 17 17:08:04 2020 +0200
label: Unref style_attrs list
gtk/gtklabel.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 704e2894f3..769039ccb7 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -2810,7 +2810,10 @@ gtk_label_update_layout_attributes (GtkLabel *self,
PangoAttrList *attrs;
if (self->layout == NULL)
- return;
+ {
+ pango_attr_list_unref (style_attrs);
+ return;
+ }
if (self->select_info && self->select_info->links)
{
@@ -2871,8 +2874,7 @@ gtk_label_update_layout_attributes (GtkLabel *self,
pango_layout_set_attributes (self->layout, attrs);
- if (attrs)
- pango_attr_list_unref (attrs);
+ pango_attr_list_unref (attrs);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]