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:
Matthias Clasen 2020-08-23 11:59:41 -04:00
parent 0540337531
commit 54e4bf8b75

View File

@ -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;