Fix a memory leak
This commit is contained in:
parent
612ee2a5c9
commit
569657a24c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue