free container matches when destroying containers
This commit is contained in:
parent
414be6290d
commit
436e4c17b3
@ -328,6 +328,12 @@ bool tree_close_internal(Con *con, kill_window_t kill_window, bool dont_kill_par
|
|||||||
free(con->name);
|
free(con->name);
|
||||||
FREE(con->deco_render_params);
|
FREE(con->deco_render_params);
|
||||||
TAILQ_REMOVE(&all_cons, con, all_cons);
|
TAILQ_REMOVE(&all_cons, con, all_cons);
|
||||||
|
while (!TAILQ_EMPTY(&(con->swallow_head))) {
|
||||||
|
Match *match = TAILQ_FIRST(&(con->swallow_head));
|
||||||
|
TAILQ_REMOVE(&(con->swallow_head), match, matches);
|
||||||
|
match_free(match);
|
||||||
|
free(match);
|
||||||
|
}
|
||||||
free(con);
|
free(con);
|
||||||
|
|
||||||
/* in the case of floating windows, we already focused another container
|
/* in the case of floating windows, we already focused another container
|
||||||
|
Loading…
Reference in New Issue
Block a user