From 34cd0514a215d65af6822eba2c2f0cd04eb0065f Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Fri, 15 Aug 2003 19:45:20 +0000 Subject: Added new FcFini function for cleaning up all memory. Fixed a few memory leaks. fc-list now calls FcFini, (and is now leak-free according to valgrind) --- fc-list/fc-list.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fc-list') diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c index 997a6acc..0fa1a8dc 100644 --- a/fc-list/fc-list.c +++ b/fc-list/fc-list.c @@ -137,6 +137,7 @@ main (int argc, char **argv) if (!os) os = FcObjectSetBuild (FC_FAMILY, FC_STYLE, (char *) 0); fs = FcFontList (0, pat, os); + FcObjectSetDestroy (os); if (pat) FcPatternDestroy (pat); @@ -157,5 +158,8 @@ main (int argc, char **argv) } FcFontSetDestroy (fs); } + + FcFini (); + return 0; } -- cgit v1.2.3