From: Ross Burton Date: Wed, 13 Apr 2005 09:11:52 +0000 (+0000) Subject: Check that a pattern isn't already frozen in FcPatternFreeze X-Git-Tag: fc-2_3_2~4 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ff4f0760a700bf7c6e1ed4c5072a524b02243ca;p=fontconfig.git Check that a pattern isn't already frozen in FcPatternFreeze --- 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)