]> 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:57:44 +0000 (12:57 +0100)
i3bar/src/xcb.c

index af472638456fefb02c86954182242d533c0ee2c4..0f0e29739b92bf80ff4265f04eefe59c477a989b 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);
     }