list.c: rename free_flat_list to list_free_items_and_destroy

This commit is contained in:
Ian Fan 2018-12-09 01:15:23 +00:00
parent c8776fac42
commit 98c1e19466
12 changed files with 20 additions and 20 deletions

View file

@ -68,7 +68,7 @@ void container_destroy(struct sway_container *con) {
list_free(con->current.children);
list_free(con->outputs);
free_flat_list(con->marks);
list_free_items_and_destroy(con->marks);
wlr_texture_destroy(con->marks_focused);
wlr_texture_destroy(con->marks_focused_inactive);
wlr_texture_destroy(con->marks_unfocused);

View file

@ -142,7 +142,7 @@ void workspace_destroy(struct sway_workspace *workspace) {
free(workspace->name);
free(workspace->representation);
free_flat_list(workspace->output_priority);
list_free_items_and_destroy(workspace->output_priority);
list_free(workspace->floating);
list_free(workspace->tiling);
list_free(workspace->current.floating);