diff options
author | Keith Packard <keithp@keithp.com> | 2008-05-04 01:25:04 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2008-05-04 01:25:04 -0700 |
commit | c6c9400d67ffefa95100d03e6650ea901b05116b (patch) | |
tree | 8e0a7d9baf429f376bfd10ae1a037a87e8d8e4dc | |
parent | d33d23ada05a688046e4cc0a48b149fbf44c9ce3 (diff) |
Call FcFini to make memory debugging easier
FcFini frees all libary data structures so valgrind should report 0
allocations in use when the program exits.
-rw-r--r-- | fc-cache/fc-cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 54add90..cd664fa 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -457,6 +457,7 @@ main (int argc, char **argv) * library, and there aren't any signals flying around here. */ FcConfigDestroy (config); + FcFini (); sleep (2); if (verbose) printf ("%s: %s\n", argv[0], ret ? "failed" : "succeeded"); |