From: Michael Stapelberg Date: Sun, 20 Mar 2011 17:17:18 +0000 (+0100) Subject: Bugfix: Also invalidate caches of the following cons in a split con on cache miss... X-Git-Tag: tree-pr3~94 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38173749f87f2cf0e5513eb6da99ec4fcee3e63c;p=i3%2Fi3 Bugfix: Also invalidate caches of the following cons in a split con on cache miss (Thanks fernandotcl) --- 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;