]> git.eshelyaron.com Git - emacs.git/commitdiff
(ftfont_spec_pattern): Free charset if necessary.
authorKenichi Handa <handa@m17n.org>
Fri, 23 May 2008 02:11:22 +0000 (02:11 +0000)
committerKenichi Handa <handa@m17n.org>
Fri, 23 May 2008 02:11:22 +0000 (02:11 +0000)
src/ftfont.c

index 72deedd73c31426bdd3e0c791c048593261141e4..0f1d2b1421b21b8f1fe3c4443f3637bd252f6f51 100644 (file)
@@ -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;
 }