From: Axel Wagner Date: Wed, 26 Jan 2011 00:38:48 +0000 (+0100) Subject: Bugfix: free() workspace-list of outputs seperately (thx dothebart) X-Git-Tag: 4.0.1~7^2~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51ffd4c3dd81e2eb123429104ff2f48c2e3b433a;p=i3%2Fi3 Bugfix: free() workspace-list of outputs seperately (thx dothebart) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 0cb1201a..2759f159 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -579,9 +579,10 @@ void init_xcb(char *fontname) { * */ void clean_xcb() { - i3_output *walk; - SLIST_FOREACH(walk, outputs, slist) { - destroy_window(walk); + i3_output *o_walk; + SLIST_FOREACH(o_walk, outputs, slist) { + destroy_window(o_walk); + FREE_TAILQ(o_walk->workspaces, i3_ws); } FREE_SLIST(outputs, i3_output);