Check that a pattern isn't already frozen in FcPatternFreeze

This commit is contained in:
Ross Burton 2005-04-13 09:11:52 +00:00
parent ae7d0f3593
commit 2ff4f0760a
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-13 Ross Burton <ross@burtonini.com>
* src/fcpat.c:
Check that a pattern isn't already frozen in FcPatternFreeze.
2005-03-31 Ross Burton <ross@burtonini.com>
* src/fclist.c:

View File

@ -538,6 +538,9 @@ FcPatternFreeze (FcPattern *p)
int size;
int i;
if (p->ref == FC_REF_CONSTANT)
return p;
size = sizeof (FcPattern) + p->num * sizeof (FcPatternElt);
b = (FcPattern *) malloc (size);
if (!b)