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~3^2~34 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d22b2916629330e4902dc9747da5a8b90c09d09;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 a6d667bc..b48a6ad9 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);