]> git.wh0rd.org Git - fontconfig.git/commitdiff
Freeze patterns created by configuration file for tiny memory savings
authorPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:24:28 +0000 (15:24 +0000)
committerPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:24:28 +0000 (15:24 +0000)
    (every little bit helps).
reviewed by: plam, keithp

ChangeLog
src/fcxml.c

index ecce9dee2b7758879cf2df76db631e582cce757f..ec5bf9f0db1f510e93d6f42574ad18384bda0433 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-02-21  Ross Burton  <ross@burtonini.com>
+       reviewed by: plam, keithp
+
+       * src/fcxml.c (FcParsePatelt):
+
+       Freeze patterns created by configuration file for tiny 
+       memory savings (every little bit helps).
+
 2006-02-21  Mike Fabian  <mfabian@suse.de>
        reviewed by: plam
        
index c9e44e375ec851732630345439207c6e661f9a4d..817486fe04fb08f55e44c11ca909f38f304744e3 100644 (file)
@@ -1968,7 +1968,8 @@ FcParsePatelt (FcConfigParse *parse)
        }
     }
 
-    FcVStackPushPattern (parse, pattern);
+    FcVStackPushPattern (parse, FcPatternFreeze(pattern));
+    FcPatternDestroy (pattern);
 }
 
 static void