trivial code optimization
This commit is contained in:
parent
d420e1df98
commit
04bd904632
|
@ -69,8 +69,8 @@ FcTestDestroy (FcTest *test)
|
||||||
void
|
void
|
||||||
FcRuleDestroy (FcRule *rule)
|
FcRuleDestroy (FcRule *rule)
|
||||||
{
|
{
|
||||||
if (rule->next)
|
FcRule *n = rule->next;
|
||||||
FcRuleDestroy (rule->next);
|
|
||||||
switch (rule->type) {
|
switch (rule->type) {
|
||||||
case FcRuleTest:
|
case FcRuleTest:
|
||||||
FcTestDestroy (rule->u.test);
|
FcTestDestroy (rule->u.test);
|
||||||
|
@ -82,6 +82,8 @@ FcRuleDestroy (FcRule *rule)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
free (rule);
|
free (rule);
|
||||||
|
if (n)
|
||||||
|
FcRuleDestroy (n);
|
||||||
}
|
}
|
||||||
|
|
||||||
static FcExpr *
|
static FcExpr *
|
||||||
|
|
Loading…
Reference in New Issue