From 38173749f87f2cf0e5513eb6da99ec4fcee3e63c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 20 Mar 2011 18:17:18 +0100 Subject: [PATCH] Bugfix: Also invalidate caches of the following cons in a split con on cache miss (Thanks fernandotcl) --- src/x.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/x.c b/src/x.c index 681ff370..c21ff739 100644 --- a/src/x.c +++ b/src/x.c @@ -283,6 +283,12 @@ void x_draw_decoration(Con *con) { } DLOG("CACHE MISS\n"); + Con *next = con; + while ((next = TAILQ_NEXT(next, nodes))) { + DLOG("Also invalidating cache of %p\n", next); + FREE(next->deco_render_params); + } + FREE(con->deco_render_params); con->deco_render_params = p; -- 2.39.5