diff options
author | Carl Worth <cworth@cworth.org> | 2003-08-15 19:45:20 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2003-08-15 19:45:20 +0000 |
commit | 34cd0514a215d65af6822eba2c2f0cd04eb0065f (patch) | |
tree | c67c425f6540c2ee5b6227a0c247ea2395b817c5 /fc-list | |
parent | 18906a876aa13550b1a10550ceeef6df0c4473ec (diff) |
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)
Diffstat (limited to 'fc-list')
-rw-r--r-- | fc-list/fc-list.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |