Don't crash in FcPatternDestroy with NULL pattern
This commit is contained in:
parent
e7d3e21632
commit
c9581b47c4
|
@ -359,6 +359,9 @@ FcPatternDestroy (FcPattern *p)
|
|||
int i;
|
||||
FcPatternElt *elts;
|
||||
|
||||
if (!p)
|
||||
return;
|
||||
|
||||
if (p->ref == FC_REF_CONSTANT)
|
||||
{
|
||||
FcCacheObjectDereference (p);
|
||||
|
|
Loading…
Reference in New Issue