From 5e0d8fc117b1b96a7df9058f20c32b31c0289554 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 15 Jan 2008 06:47:49 +0000 Subject: [PATCH] (ft_drive_otf): Don't refer to otf_gstring if HAVE_OTF is not defined. --- src/font-ft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font-ft.c b/src/font-ft.c index 09b651a..913292b 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -2488,6 +2488,8 @@ ft_drive_otf (MFLTFont *font, MFLTOtfSpec *spec, return to; simple_copy: + if (otf_gstring.glyphs) + free (otf_gstring.glyphs); #endif /* HAVE_OTF */ if (out->allocated < out->used + len) return -2; @@ -2495,8 +2497,6 @@ ft_drive_otf (MFLTFont *font, MFLTOtfSpec *spec, memcpy ((MGlyph *)out->glyphs + out->used, (MGlyph *) in->glyphs + from, sizeof (MGlyph) * len); out->used += len; - if (otf_gstring.glyphs) - free (otf_gstring.glyphs); return to; } -- 1.7.10.4