From 2d3387fd720f33f80847ae6cbb83d94c9a52fde3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 30 Aug 2006 21:59:53 -0700 Subject: Skip broken caches. Cache files are auto-written, don't rewrite in fc-cache. Validate cache contents and skip broken caches, looking down cache path for valid ones. Every time a directory is scanned, it will be written to a cache file if possible, so fc-cache doesn't need to re-write the cache file. This makes detecting when the cache was generated a bit tricky, so we guess that if the cache wasn't valid before running and is valid afterwards, the cache file was written. Also, allow empty charsets to be serialized with null leaves/numbers. Eliminate a leak in FcEdit by switching to FcObject sooner. Call FcFini from fc-match to make valgrind happy. --- fc-match/fc-match.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fc-match') diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c index d9742c9..5f36f00 100644 --- a/fc-match/fc-match.c +++ b/fc-match/fc-match.c @@ -187,5 +187,6 @@ main (int argc, char **argv) } FcFontSetDestroy (fs); } + FcFini (); return 0; } -- cgit v1.2.1