diff options
author | Akira TAGOH <akira@tagoh.org> | 2013-03-05 12:46:01 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-03-05 12:46:01 +0900 |
commit | 569657a24ca11aedfd3b588984344d7ab97fe09f (patch) | |
tree | df3c370425eae3f897ae62d37ca32b5bc9e91e72 /src/fclang.c | |
parent | 612ee2a5c91b8929b2cc5abce4af84d8d7e66bd0 (diff) | |
download | fontconfig-569657a24ca11aedfd3b588984344d7ab97fe09f.tar.gz |
Fix a memory leak
Diffstat (limited to 'src/fclang.c')
-rw-r--r-- | src/fclang.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |