]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: free() workspace-list of outputs seperately (thx dothebart)
authorAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 00:38:48 +0000 (01:38 +0100)
committerAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 01:00:46 +0000 (02:00 +0100)
i3bar/src/xcb.c

index 0cb1201ab03ecd005c5f948eff32bcdba84a9591..2759f1595f02ed6443d1aadffb28273c6413c1c8 100644 (file)
@@ -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);