Merge pull request #3188 from orestisf1993/free_ran_assignments
Free ran_assignments
This commit is contained in:
commit
b4e24a6d5f
10
src/config.c
10
src/config.c
|
@ -162,10 +162,16 @@ void load_configuration(xcb_connection_t *conn, const char *override_configpath,
|
||||||
FREE(barconfig);
|
FREE(barconfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Invalidate pixmap caches in case font or colors changed */
|
|
||||||
Con *con;
|
Con *con;
|
||||||
TAILQ_FOREACH(con, &all_cons, all_cons)
|
TAILQ_FOREACH(con, &all_cons, all_cons) {
|
||||||
|
/* Assignments changed, previously ran assignments are invalid. */
|
||||||
|
if (con->window) {
|
||||||
|
con->window->nr_assignments = 0;
|
||||||
|
FREE(con->window->ran_assignments);
|
||||||
|
}
|
||||||
|
/* Invalidate pixmap caches in case font or colors changed. */
|
||||||
FREE(con->deco_render_params);
|
FREE(con->deco_render_params);
|
||||||
|
}
|
||||||
|
|
||||||
/* Get rid of the current font */
|
/* Get rid of the current font */
|
||||||
free_font();
|
free_font();
|
||||||
|
|
Loading…
Reference in New Issue