summaryrefslogtreecommitdiff
path: root/fc-list/fc-list.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2003-08-15 19:45:20 +0000
committerCarl Worth <cworth@cworth.org>2003-08-15 19:45:20 +0000
commit34cd0514a215d65af6822eba2c2f0cd04eb0065f (patch)
treec67c425f6540c2ee5b6227a0c247ea2395b817c5 /fc-list/fc-list.c
parent18906a876aa13550b1a10550ceeef6df0c4473ec (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/fc-list.c')
-rw-r--r--fc-list/fc-list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fc-list/fc-list.c b/fc-list/fc-list.c
index 997a6ac..0fa1a8d 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;
}