summaryrefslogtreecommitdiff
path: root/pango/pangocairo-win32font.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pangocairo-win32font.c')
-rw-r--r--pango/pangocairo-win32font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-win32font.c b/pango/pangocairo-win32font.c
index 9e770691..d6a563be 100644
--- a/pango/pangocairo-win32font.c
+++ b/pango/pangocairo-win32font.c
@@ -165,7 +165,7 @@ static void
free_metrics_info (PangoWin32MetricsInfo *info)
{
pango_font_metrics_unref (info->metrics);
- g_free (info);
+ g_slice_free (PangoWin32MetricsInfo, info);
}
static void
@@ -347,7 +347,7 @@ pango_cairo_win32_font_get_metrics (PangoFont *font,
if (!win32font->fontmap)
return pango_font_metrics_new ();
- info = g_new0 (PangoWin32MetricsInfo, 1);
+ info = g_slice_new0 (PangoWin32MetricsInfo);
cwfont->metrics_by_lang = g_slist_prepend (cwfont->metrics_by_lang,
info);