]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Use free-workspaces() in xcb-cleanup (thx dothebart)
authorAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 11:56:49 +0000 (12:56 +0100)
committerAxel Wagner <mail@merovius.de>
Wed, 26 Jan 2011 11:58:15 +0000 (12:58 +0100)
i3bar/src/xcb.c

index 7e4e3d826f3e9cde689bff259405261555233e9c..fb2564fb9386d3c002d0f569ca1c64c6dcb08a8d 100644 (file)
@@ -582,9 +582,9 @@ void init_xcb(char *fontname) {
  */
 void clean_xcb() {
     i3_output *o_walk;
+    free_workspaces();
     SLIST_FOREACH(o_walk, outputs, slist) {
         destroy_window(o_walk);
-        FREE_TAILQ(o_walk->workspaces, i3_ws);
         FREE(o_walk->workspaces);
         FREE(o_walk->name);
     }