diff --git a/src/fccfg.c b/src/fccfg.c index d8bbe8d..0d7f17e 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -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; } }