Fix memory leaks
This commit is contained in:
parent
4b1276e240
commit
12be797387
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue