Fix a memory leak

This commit is contained in:
Akira TAGOH 2013-03-05 12:46:01 +09:00
parent 612ee2a5c9
commit 569657a24c
1 changed files with 3 additions and 1 deletions

View File

@ -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);