aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-16 13:06:54 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-16 13:06:54 +0100
commit053fb09d1e19e7eebcf6908d2b8eb70b7b51db7a (patch)
tree6a473bc883211784c482a28a20ae41c68a10caf7
parent1825cf32bf45f32b5291ed42606d6911b10f72cc (diff)
Use free_flat_list for simple char* list.
No need to reimplement free_flat_list functionality.
-rw-r--r--sway/config.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/config.c b/sway/config.c
index e86bdab5..2f89cd39 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -49,10 +49,7 @@ static void free_bar(struct bar_config *bar) {
}
list_free(bar->bindings);
- for (i = 0; i < bar->outputs->length; ++i) {
- free(bar->outputs->items[i]);
- }
- list_free(bar->outputs);
+ free_flat_list(bar->outputs);
free(bar);
}