]> git.wh0rd.org - fontconfig.git/blobdiff - fc-list/fc-list.c
Remove all .cvsignore files
[fontconfig.git] / fc-list / fc-list.c
index 64163311bc94de383527c5f3f8a132c5fb683151..b85dfd7e49a180fe95d462cdcee30b54c87ed2bd 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * $RCSId: xc/lib/fontconfig/fc-list/fc-list.c,v 1.5 2002/06/30 23:45:40 keithp Exp $
  *
- * Copyright © 2002 Keith Packard
+ * Copyright Â© 2002 Keith Packard
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -85,7 +85,7 @@ static void usage (char *program)
 int
 main (int argc, char **argv)
 {
-    int                verbose = 0;
+    /*int              verbose = 0;*/
     int                i;
     FcObjectSet *os = 0;
     FcFontSet  *fs;
@@ -105,7 +105,7 @@ main (int argc, char **argv)
                     FC_MAJOR, FC_MINOR, FC_REVISION);
            exit (0);
        case 'v':
-           verbose = 1;
+           /* verbose = 1; */
            break;
        default:
            usage (argv[0]);
@@ -135,8 +135,9 @@ main (int argc, char **argv)
        pat = FcPatternCreate ();
     
     if (!os)
-       os = FcObjectSetBuild (FC_FAMILY, FC_STYLE, 0);
+       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;
 }