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