[Fontconfig] fontconfig: Branch 'master'

Akira TAGOH tagoh at kemper.freedesktop.org
Mon Mar 4 19:46:16 PST 2013


 src/fclang.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 569657a24ca11aedfd3b588984344d7ab97fe09f
Author: Akira TAGOH <akira at tagoh.org>
Date:   Tue Mar 5 12:46:01 2013 +0900

    Fix a memory leak

diff --git a/src/fclang.c b/src/fclang.c
index 8e9b094..9f685f6 100644
--- a/src/fclang.c
+++ b/src/fclang.c
@@ -1027,9 +1027,11 @@ FcLangSetOperate(const FcLangSet	*a,
 						 const FcChar8	*s))
 {
     FcLangSet	*langset = FcLangSetCopy (a);
-    FcStrList	*sl = FcStrListCreate (FcLangSetGetLangs (b));
+    FcStrSet	*set = FcLangSetGetLangs (b);
+    FcStrList	*sl = FcStrListCreate (set);
     FcChar8	*str;
 
+    FcStrSetDestroy (set);
     while ((str = FcStrListNext (sl)))
     {
 	func (langset, str);


More information about the Fontconfig mailing list