fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

New commits:
commit 569657a24ca11aedfd3b588984344d7ab97fe09f
Author: Akira TAGOH <akira@xxxxxxxxx>
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);
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux