summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-04 22:24:21 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-04 22:24:21 -0500
commit3dd3ae1b9dd0f87522ca63518920504bb55081c5 (patch)
tree7b5539df9482621a3436c24143dec5820e667e34
parente41e8c4c53950a7a14cb00098bc7ee4ef51ac60c (diff)
downloadgtk+-3dd3ae1b9dd0f87522ca63518920504bb55081c5.tar.gz
font chooser: Plug a memory leak
We were leaking the hb_font object.
-rw-r--r--gtk/gtkfontchooserwidget.c2
1 files changed, 1 insertions, 1 deletions
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));