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.
This commit is contained in:
Keith Packard 2008-05-04 01:25:04 -07:00
parent d33d23ada0
commit c6c9400d67
1 changed files with 1 additions and 0 deletions

View 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");