Bugfix: free() workspace-list of outputs seperately (thx dothebart)

This commit is contained in:
Axel Wagner 2011-01-26 01:38:48 +01:00
parent 17a795aba1
commit 51ffd4c3dd
1 changed files with 4 additions and 3 deletions

View File

@ -579,9 +579,10 @@ void init_xcb(char *fontname) {
* *
*/ */
void clean_xcb() { void clean_xcb() {
i3_output *walk; i3_output *o_walk;
SLIST_FOREACH(walk, outputs, slist) { SLIST_FOREACH(o_walk, outputs, slist) {
destroy_window(walk); destroy_window(o_walk);
FREE_TAILQ(o_walk->workspaces, i3_ws);
} }
FREE_SLIST(outputs, i3_output); FREE_SLIST(outputs, i3_output);