forked from AuroraMiddleware/gtk
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:
parent
0540337531
commit
54e4bf8b75
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user