From: Kenichi Handa Date: Fri, 23 May 2008 02:11:22 +0000 (+0000) Subject: (ftfont_spec_pattern): Free charset if necessary. X-Git-Tag: emacs-pretest-23.0.90~5348 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de24e3eb5175b2441778f8ce5f12937f8892cb0c;p=emacs.git (ftfont_spec_pattern): Free charset if necessary. --- 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; }