]> 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 01:00:55 +0000 (02:00 +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 f775aad3ae71c0608c93e9eb063e239f395f292d..e481e314ed7d3bad7fde32e208b32ad31e6f4035 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);