Fix memory leaks

This commit is contained in:
Akira TAGOH 2018-07-19 12:08:34 +09:00
parent 4b1276e240
commit 12be797387
1 changed files with 2 additions and 0 deletions

View File

@ -1832,11 +1832,13 @@ FcConfigSubstituteWithPat (FcConfig *config,
if (value[object]) if (value[object])
{ {
FcConfigDel (&elt[object]->values, value[object]); FcConfigDel (&elt[object]->values, value[object]);
FcValueListDestroy (l);
break; break;
} }
/* fall through ... */ /* fall through ... */
case FcOpDeleteAll: case FcOpDeleteAll:
FcConfigPatternDel (p, r->u.edit->object); FcConfigPatternDel (p, r->u.edit->object);
FcValueListDestroy (l);
break; break;
default: default:
FcValueListDestroy (l); FcValueListDestroy (l);