mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Use free_flat_list for simple char* list.
No need to reimplement free_flat_list functionality.
This commit is contained in:
parent
1825cf32bf
commit
053fb09d1e
1 changed files with 1 additions and 4 deletions
|
@ -49,10 +49,7 @@ static void free_bar(struct bar_config *bar) {
|
||||||
}
|
}
|
||||||
list_free(bar->bindings);
|
list_free(bar->bindings);
|
||||||
|
|
||||||
for (i = 0; i < bar->outputs->length; ++i) {
|
free_flat_list(bar->outputs);
|
||||||
free(bar->outputs->items[i]);
|
|
||||||
}
|
|
||||||
list_free(bar->outputs);
|
|
||||||
free(bar);
|
free(bar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue