Fix a leak in the font chooser widget
Contrary to what you may expect, pango_attr_font_desc_new() is not transfer full, it makes a copy of the font description.
This commit is contained in:
@@ -505,6 +505,7 @@ get_font_attributes (GObject *ignore,
|
||||
font_desc = pango_font_face_describe (face);
|
||||
attribute = pango_attr_font_desc_new (font_desc);
|
||||
pango_attr_list_insert (attrs, attribute);
|
||||
pango_font_description_free (font_desc);
|
||||
}
|
||||
|
||||
return attrs;
|
||||
|
||||
Reference in New Issue
Block a user