diff --git a/ChangeLog b/ChangeLog index 63c44cd..fbec32e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-13 Ross Burton + + * src/fcpat.c: + Check that a pattern isn't already frozen in FcPatternFreeze. + 2005-03-31 Ross Burton * src/fclist.c: diff --git a/src/fcpat.c b/src/fcpat.c index 32054e1..c886c92 100644 --- a/src/fcpat.c +++ b/src/fcpat.c @@ -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)