]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/src/xcb.c
i3bar: free output data structures
[i3/i3] / i3bar / src / xcb.c
index dfa66ee2db209e66f21dc87eced55864bac4b9d7..815f41fdf3678eea41ad1f4ab4041430925f35f4 100644 (file)
@@ -1517,16 +1517,7 @@ void init_tray_colors(void) {
  *
  */
 void clean_xcb(void) {
-    i3_output *o_walk;
-    free_workspaces();
-    SLIST_FOREACH(o_walk, outputs, slist) {
-        destroy_window(o_walk);
-        FREE(o_walk->trayclients);
-        FREE(o_walk->workspaces);
-        FREE(o_walk->name);
-    }
-    FREE_SLIST(outputs, i3_output);
-    FREE(outputs);
+    free_outputs();
 
     free_font();