[Commit] fontconfig/fc-list fc-list.c,1.9,1.10

Carl Worth commit at keithp.com
Fri Aug 15 13:45:22 PDT 2003


Committed by: cworth

Update of /local/src/CVS/fontconfig/fc-list
In directory home.keithp.com:/tmp/cvs-serv29091/fc-list

Modified Files:
	fc-list.c 
Log Message:
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)

Index: fc-list.c
===================================================================
RCS file: /local/src/CVS/fontconfig/fc-list/fc-list.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- fc-list.c	12 Aug 2003 02:06:20 -0000	1.9
+++ fc-list.c	15 Aug 2003 19:45:19 -0000	1.10
@@ -137,6 +137,7 @@
     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 @@
 	}
 	FcFontSetDestroy (fs);
     }
+
+    FcFini ();
+
     return 0;
 }




More information about the Commit mailing list