From de24e3eb5175b2441778f8ce5f12937f8892cb0c Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 23 May 2008 02:11:22 +0000 Subject: [PATCH] (ftfont_spec_pattern): Free charset if necessary. --- src/ftfont.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ftfont.c b/src/ftfont.c index 72deedd73c3..0f1d2b1421b 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -617,6 +617,7 @@ ftfont_spec_pattern (spec, fc_charset_idx, otlayout, otspec) finish: if (langset) FcLangSetDestroy (langset); + if (charset && *fc_charset_idx < 0) FcCharSetDestroy (charset); return pattern; } -- 2.39.2