summaryrefslogtreecommitdiff
path: root/fc-match
diff options
context:
space:
mode:
authorKeith Packard <keithp@neko.keithp.com>2006-08-30 21:59:53 -0700
committerKeith Packard <keithp@neko.keithp.com>2006-08-30 21:59:53 -0700
commit2d3387fd720f33f80847ae6cbb83d94c9a52fde3 (patch)
tree3fc11dd9351ea57bec218420a4c9910e3729cc54 /fc-match
parent09f9f6f62ac94f7b1a6df649a00c64f78ab132f5 (diff)
downloadfontconfig-2d3387fd720f33f80847ae6cbb83d94c9a52fde3.tar.gz
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.
Diffstat (limited to 'fc-match')
-rw-r--r--fc-match/fc-match.c1
1 files changed, 1 insertions, 0 deletions
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;
}