]> git.wh0rd.org - fontconfig.git/commitdiff
Fix missing initialization/destruction of new 'scan' target subst list.
authorKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 03:07:29 +0000 (20:07 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Sun, 3 Sep 2006 03:07:29 +0000 (20:07 -0700)
Forgot to initialize and destroy the new substitution list for the 'scan'
match target.

src/fccfg.c

index 3cea2c9406940244facfb3b3ccfb28f8085648d8..2f0d3111b58702b0adfe4a6344d66f4fef4fb6e5 100644 (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]);