From 3dd3ae1b9dd0f87522ca63518920504bb55081c5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 4 Jan 2018 22:24:21 -0500 Subject: [PATCH] font chooser: Plug a memory leak We were leaking the hb_font object. --- gtk/gtkfontchooserwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c index 7b2f232670..6aff6beeaf 100644 --- a/gtk/gtkfontchooserwidget.c +++ b/gtk/gtkfontchooserwidget.c @@ -2086,7 +2086,7 @@ gtk_font_chooser_widget_update_font_features (GtkFontChooserWidget *fontchooser) } } - hb_face_destroy (hb_face); + hb_font_destroy (hb_font); } pango_fc_font_unlock_face (PANGO_FC_FONT (pango_font));