Avoid crashing on empty test/edit lists
This commit is contained in:
parent
3fbd50e486
commit
f4007a6728
|
@ -134,7 +134,9 @@ FcSubstDestroy (FcSubst *s)
|
|||
while (s)
|
||||
{
|
||||
n = s->next;
|
||||
if (s->test)
|
||||
FcTestDestroy (s->test);
|
||||
if (s->edit)
|
||||
FcEditDestroy (s->edit);
|
||||
s = n;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue