diff options
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r-- | swaybar/status_line.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index ee740c6b..a072673b 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c @@ -433,3 +433,10 @@ struct status_line *init_status_line() { return line; } + +void free_status_line(struct status_line *line) { + if (line->block_line) { + list_foreach(line->block_line, free_status_block); + list_free(line->block_line); + } +} |