Fix missing initialization/destruction of new 'scan' target subst list.

Forgot to initialize and destroy the new substitution list for the 'scan'
match target.
This commit is contained in:
Keith Packard 2006-09-02 20:07:29 -07:00
parent c2c6976d1a
commit fb6e30ab3e
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ FcConfigCreate (void)
config->substPattern = 0;
config->substFont = 0;
config->substScan = 0;
config->maxObjects = 0;
for (set = FcSetSystem; set <= FcSetApplication; set++)
config->fonts[set] = 0;
@ -215,6 +216,7 @@ FcConfigDestroy (FcConfig *config)
FcSubstDestroy (config->substPattern);
FcSubstDestroy (config->substFont);
FcSubstDestroy (config->substScan);
for (set = FcSetSystem; set <= FcSetApplication; set++)
if (config->fonts[set])
FcFontSetDestroy (config->fonts[set]);