Fix double-free

This commit is contained in:
Akira TAGOH 2018-05-25 15:20:10 +09:00
parent 3ea70f9368
commit 14c23a5715
1 changed files with 3 additions and 0 deletions

View File

@ -2780,7 +2780,10 @@ FcParseAcceptRejectFont (FcConfigParse *parse, FcElement element)
else else
{ {
if (parse->scanOnly && vstack->u.string) if (parse->scanOnly && vstack->u.string)
{
FcStrFree (vstack->u.string); FcStrFree (vstack->u.string);
vstack->tag = FcVStackNone;
}
} }
break; break;
case FcVStackPattern: case FcVStackPattern: