From dd489976687342c82bb8c8e884a7af7c08d364fc Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 11 Jun 2006 10:21:35 +0000 Subject: fix two memleaks --- render/font.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c index 11a8edc6..b715bb80 100644 --- a/render/font.c +++ b/render/font.c @@ -203,12 +203,12 @@ RrFont *RrFontOpen(const RrInstance *inst, gchar *fontstring) void RrFontClose(RrFont *f) { if (f) { +#ifdef USE_PANGO + pango_font_description_free(f->pango_font_description); +#endif XftFontClose(RrDisplay(f->inst), f->xftfont); g_free(f); } -#ifdef USE_PANGO - pango_font_description_free(f->pango_font_description); -#endif } static void font_measure_full(const RrFont *f, const gchar *str, -- cgit v1.2.3