From: Keith Packard Date: Sun, 3 Sep 2006 03:07:29 +0000 (-0700) Subject: Fix missing initialization/destruction of new 'scan' target subst list. X-Git-Tag: 2.3.96~6 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=fb6e30ab3ef74021978d260fb7f2c40a0b5a0b06 Fix missing initialization/destruction of new 'scan' target subst list. Forgot to initialize and destroy the new substitution list for the 'scan' match target. --- 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]);