]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Also free() the head of slist/tailq (Thx dothebart)
authorAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 00:51:46 +0000 (01:51 +0100)
committerAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 00:54:36 +0000 (01:54 +0100)
i3bar/src/workspaces.c
i3bar/src/xcb.c

index 0393071e6425b09d3dfa8c02c2d09c1ab941d712..89f7757da1ae990a4b863ba1b3e4a9588d6928fb 100644 (file)
@@ -250,7 +250,7 @@ void parse_workspaces_json(char *json) {
 }
 
 /*
- * free() all workspace data-structures
+ * free() all workspace data-structures. Does not free() the heads of the tailqueues.
  *
  */
 void free_workspaces() {
index 1d7bcd3e4e5aedc1f3cab7b4c3f5cb03f303113b..10afa923b8c47ad9735f9cb539cf90872d248609 100644 (file)
@@ -585,8 +585,10 @@ void clean_xcb() {
     SLIST_FOREACH(o_walk, outputs, slist) {
         destroy_window(o_walk);
         FREE_TAILQ(o_walk->workspaces, i3_ws);
+        FREE(o_walk->workspaces);
     }
     FREE_SLIST(outputs, i3_output);
+    FREE(outputs);
 
     xcb_disconnect(xcb_connection);