diff options
Diffstat (limited to 'src/fccfg.c')
-rw-r--r-- | src/fccfg.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fccfg.c b/src/fccfg.c index 7b5d693b..12cad846 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -160,6 +160,8 @@ FcSubstDestroy (FcSubst *s) FcTestDestroy (s->test); if (s->edit) FcEditDestroy (s->edit); + free (s); + FcMemFree (FC_MEM_SUBST, sizeof (FcSubst)); s = n; } } @@ -178,6 +180,9 @@ FcConfigDestroy (FcConfig *config) FcStrSetDestroy (config->acceptGlobs); FcStrSetDestroy (config->rejectGlobs); + if (config->blanks) + FcBlanksDestroy (config->blanks); + if (config->cache) FcStrFree (config->cache); @@ -186,6 +191,7 @@ FcConfigDestroy (FcConfig *config) for (set = FcSetSystem; set <= FcSetApplication; set++) if (config->fonts[set]) FcFontSetDestroy (config->fonts[set]); + free (config); FcMemFree (FC_MEM_CONFIG, sizeof (FcConfig)); } |