From c6c9400d67ffefa95100d03e6650ea901b05116b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 4 May 2008 01:25:04 -0700 Subject: [PATCH] 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. --- fc-cache/fc-cache.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.39.5