From: Keith Packard Date: Sun, 4 May 2008 08:25:04 +0000 (-0700) Subject: Call FcFini to make memory debugging easier X-Git-Tag: 2.5.93~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c6c9400d67ffefa95100d03e6650ea901b05116b;p=fontconfig.git 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. --- 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");