Check that a pattern isn't already frozen in FcPatternFreeze
This commit is contained in:
parent
ae7d0f3593
commit
2ff4f0760a
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue