summaryrefslogtreecommitdiff
path: root/pango/pangofc-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r--pango/pangofc-font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c
index b53dd5fa..953af1d6 100644
--- a/pango/pangofc-font.c
+++ b/pango/pangofc-font.c
@@ -112,7 +112,7 @@ static void
free_metrics_info (PangoFcMetricsInfo *info)
{
pango_font_metrics_unref (info->metrics);
- g_free (info);
+ g_slice_free (PangoFcMetricsInfo, info);
}
static void
@@ -467,7 +467,7 @@ pango_fc_font_get_metrics (PangoFont *font,
if (!fcfont->fontmap)
return pango_font_metrics_new ();
- info = g_new0 (PangoFcMetricsInfo, 1);
+ info = g_slice_new0 (PangoFcMetricsInfo);
fcfont->metrics_by_lang = g_slist_prepend (fcfont->metrics_by_lang,
info);