[gtk+] font chooser: Fix a memory leak



commit e41e8c4c53950a7a14cb00098bc7ee4ef51ac60c
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 4 21:19:28 2018 -0500

    font chooser: Fix a memory leak
    
    We were leaking the delayed font descriptions.

 gtk/gtkfontchooserwidget.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index ee5f50f..7b2f232 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]