From 2ff4f0760a700bf7c6e1ed4c5072a524b02243ca Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 13 Apr 2005 09:11:52 +0000 Subject: [PATCH] Check that a pattern isn't already frozen in FcPatternFreeze --- ChangeLog | 5 +++++ src/fcpat.c | 3 +++ 2 files changed, 8 insertions(+) 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) -- 2.39.5