changeset 95229:38cbd89dd626

(ftfont_spec_pattern): Free charset if necessary.
author Kenichi Handa <handa@m17n.org>
date Fri, 23 May 2008 02:11:22 +0000
parents 451f4028c096
children fa14617b247e
files src/ftfont.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ftfont.c	Fri May 23 01:58:15 2008 +0000
+++ b/src/ftfont.c	Fri May 23 02:11:22 2008 +0000
@@ -617,6 +617,7 @@
 
  finish:
   if (langset) FcLangSetDestroy (langset);
+  if (charset && *fc_charset_idx < 0) FcCharSetDestroy (charset);
   return pattern;
 }