mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
font chooser: Fix a memory leak
We were leaking the delayed font descriptions.
This commit is contained in:
parent
0ed670ed62
commit
e41e8c4c53
@ -1399,6 +1399,7 @@ gtk_font_chooser_widget_update_font_name (GtkFontChooserWidget *fontchooser,
|
||||
|
||||
g_object_unref (family);
|
||||
g_object_unref (face);
|
||||
gtk_delayed_font_description_unref (desc);
|
||||
|
||||
if (priv->level == GTK_FONT_CHOOSER_LEVEL_FAMILY)
|
||||
title = g_strdup (fam_name);
|
||||
|
Loading…
Reference in New Issue
Block a user