Free patterns from fonts which are rejected by configuration (bug #2518)

reviewed by: pborelli@katamail.com
This commit is contained in:
Keith Packard 2005-02-10 23:00:51 +00:00
parent afca783626
commit 47b49bf14b
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2005-02-10 Keith Packard <keithp@keithp.com>
reviewed by: pborelli@katamail.com
* src/fcdir.c: (FcFileScanConfig):
Free patterns from fonts which are rejected by configuration
(bug #2518)
2005-01-28 Keith Packard <keithp@keithp.com>
* README:

View File

@ -150,6 +150,8 @@ FcFileScanConfig (FcFontSet *set,
ret = FcFalse;
}
}
else if (font)
FcPatternDestroy (font);
id++;
} while (font && ret && id < count);
return ret;