From c6069c33e3a4a6d48aa059dbe9a78702dabff9cc Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 9 Jul 2013 11:30:31 +0200 Subject: fontconfig libX11 libxcb mesa git update 9 Jul 2013 libxcb commit a1e67b141a57d39cbcaff1a703d6fc0da1fbb56d libX11 commit 383e2b0d029482a0f4c39fe00e15397538576fc1 fontconfig commit 04bd904632b22682c888f658650cdcd322544273 mesa commit 292368570a13501dfa95b1b0dd70966caf6ffc6b --- fontconfig/src/fcxml.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fontconfig') diff --git a/fontconfig/src/fcxml.c b/fontconfig/src/fcxml.c index 61dc6300b..6a2af85e3 100644 --- a/fontconfig/src/fcxml.c +++ b/fontconfig/src/fcxml.c @@ -69,8 +69,8 @@ FcTestDestroy (FcTest *test) void FcRuleDestroy (FcRule *rule) { - if (rule->next) - FcRuleDestroy (rule->next); + FcRule *n = rule->next; + switch (rule->type) { case FcRuleTest: FcTestDestroy (rule->u.test); @@ -82,6 +82,8 @@ FcRuleDestroy (FcRule *rule) break; } free (rule); + if (n) + FcRuleDestroy (n); } static FcExpr * -- cgit v1.2.3