From dacf81ed4c541174f0dbfe2898f3309657bf6116 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Tue, 21 Feb 2006 15:24:28 +0000 Subject: [PATCH] Freeze patterns created by configuration file for tiny memory savings (every little bit helps). reviewed by: plam, keithp --- ChangeLog | 8 ++++++++ src/fcxml.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ecce9de..ec5bf9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-02-21 Ross Burton + 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 reviewed by: plam diff --git a/src/fcxml.c b/src/fcxml.c index c9e44e3..817486f 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -1968,7 +1968,8 @@ FcParsePatelt (FcConfigParse *parse) } } - FcVStackPushPattern (parse, pattern); + FcVStackPushPattern (parse, FcPatternFreeze(pattern)); + FcPatternDestroy (pattern); } static void -- 2.39.5