]> git.wh0rd.org Git - fontconfig.git/commitdiff
Call FcFini to make memory debugging easier
authorKeith Packard <keithp@keithp.com>
Sun, 4 May 2008 08:25:04 +0000 (01:25 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 4 May 2008 08:25:04 +0000 (01:25 -0700)
FcFini frees all libary data structures so valgrind should report 0
allocations in use when the program exits.

fc-cache/fc-cache.c

index 54add90b61e5c87b53eb410b6ac3deaba571c04b..cd664fa16f9e8371fdd9fd1a88115842789a3090 100644 (file)
@@ -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");