Bugfix: Also invalidate caches of the following cons in a split con on cache miss (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2011-03-20 18:17:18 +01:00
parent b3ee50b184
commit 38173749f8
1 changed files with 6 additions and 0 deletions

View File

@ -283,6 +283,12 @@ void x_draw_decoration(Con *con) {
} }
DLOG("CACHE MISS\n"); 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); FREE(con->deco_render_params);
con->deco_render_params = p; con->deco_render_params = p;