Skip to content

Commit

Permalink
linux: unref the attribute list
Browse files Browse the repository at this point in the history
  • Loading branch information
eyelash committed Nov 9, 2024
1 parent 3189b00 commit 543fae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gral_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ struct gral_text *gral_text_create(struct gral_window *window, char const *text,
PangoLayout *layout = pango_layout_new(context);
pango_layout_set_text(layout, text, -1);
pango_layout_set_font_description(layout, (PangoFontDescription *)font);
pango_layout_set_attributes(layout, pango_attr_list_new());
PangoAttrList *attr_list = pango_attr_list_new();
pango_layout_set_attributes(layout, attr_list);
pango_attr_list_unref(attr_list);
return (struct gral_text *)layout;
}

Expand Down

0 comments on commit 543fae3

Please sign in to comment.