[gtk+] font chooser: Plug a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] font chooser: Plug a memory leak
- Date: Fri, 5 Jan 2018 03:25:20 +0000 (UTC)
commit 3dd3ae1b9dd0f87522ca63518920504bb55081c5
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 4 22:24:21 2018 -0500
font chooser: Plug a memory leak
We were leaking the hb_font object.
gtk/gtkfontchooserwidget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index 7b2f232..6aff6be 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]