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

@ -23,11 +23,11 @@ struct cmd_results *bar_cmd_modifier(int argc, char **argv) {
} else {
error = cmd_results_new(CMD_INVALID, "modifier",
"Unknown modifier '%s'", split->items[i]);
free_flat_list(split);
list_free_items_and_destroy(split);
return error;
}
}
free_flat_list(split);
list_free_items_and_destroy(split);
config->current_bar->modifier = mod;
wlr_log(WLR_DEBUG,
"Show/Hide the bar when pressing '%s' in hide mode.", argv[0]);