From fb6e30ab3ef74021978d260fb7f2c40a0b5a0b06 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 2 Sep 2006 20:07:29 -0700 Subject: [PATCH] Fix missing initialization/destruction of new 'scan' target subst list. Forgot to initialize and destroy the new substitution list for the 'scan' match target. --- src/fccfg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fccfg.c b/src/fccfg.c index 3cea2c9..2f0d311 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -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]); -- 2.39.5