font chooser: Fix a memory leak

We were leaking the delayed font descriptions.
This commit is contained in:
Matthias Clasen 2018-01-04 21:19:28 -05:00
parent 0ed670ed62
commit e41e8c4c53

View File

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