]> 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 00:54:36 +0000 (01:54 +0100)
i3bar/src/xcb.c

index a6d667bcc9c4d376cfeb68853602ea8b995431d7..b48a6ad92c2bb630ffdd255a8325cfc39ac2ba63 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);