i3bar: free output data structures

This commit is contained in:
Orestis Floros
2017-09-26 14:50:26 +03:00
parent a05663c59e
commit 54c79e4b2f
5 changed files with 40 additions and 21 deletions

View 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();