]> git.wh0rd.org Git - fontconfig.git/commitdiff
Free patterns from fonts which are rejected by configuration (bug #2518)
authorKeith Packard <keithp@keithp.com>
Thu, 10 Feb 2005 23:00:51 +0000 (23:00 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 10 Feb 2005 23:00:51 +0000 (23:00 +0000)
reviewed by: pborelli@katamail.com

ChangeLog
src/fcdir.c

index ff4549568a8c1062e8d8a9f7028f405954cafac0..a67f61917c0b872efb086c41cc7aae6b0b5fc904 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-02-10  Keith Packard  <keithp@keithp.com>
+
+       reviewed by: pborelli@katamail.com
+
+       * src/fcdir.c: (FcFileScanConfig):
+       Free patterns from fonts which are rejected by configuration
+       (bug #2518)
+
 2005-01-28  Keith Packard  <keithp@keithp.com>
 
        * README:
index 8f7738d2dbe2dcbf5e516a4dab677df7cb3ddce6..974886d362c0ab19e4561e70056d6c12d27da46b 100644 (file)
@@ -150,6 +150,8 @@ FcFileScanConfig (FcFontSet *set,
                ret = FcFalse;
            }
        }
+       else if (font)
+           FcPatternDestroy (font);
        id++;
     } while (font && ret && id < count);
     return ret;