From e41e8c4c53950a7a14cb00098bc7ee4ef51ac60c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 Jan 2018 21:19:28 -0500 Subject: [PATCH] font chooser: Fix a memory leak We were leaking the delayed font descriptions. --- gtk/gtkfontchooserwidget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index ee5f50f0a2..7b2f232670 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -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);