diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-13 13:51:04 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-13 13:51:23 -0500 |
commit | 36bf4d24cfa8be33cf39ab1c479963b2ed3a35db (patch) | |
tree | 1c7ff5c61ae35711cc8812de1c74c40399b5b0e4 | |
parent | Merge pull request #302 from fluxchief/destroy-workspace-fix (diff) | |
download | sway-36bf4d24cfa8be33cf39ab1c479963b2ed3a35db.tar.gz sway-36bf4d24cfa8be33cf39ab1c479963b2ed3a35db.tar.zst sway-36bf4d24cfa8be33cf39ab1c479963b2ed3a35db.zip |
Free last line in swaybar
-rw-r--r-- | swaybar/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/main.c b/swaybar/main.c index e4a97e69..e252a2db 100644 --- a/swaybar/main.c +++ b/swaybar/main.c | |||
@@ -79,6 +79,7 @@ void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { | |||
79 | 79 | ||
80 | void update() { | 80 | void update() { |
81 | if (!feof(command)) { | 81 | if (!feof(command)) { |
82 | free(line); | ||
82 | line = read_line(command); | 83 | line = read_line(command); |
83 | int l = strlen(line) - 1; | 84 | int l = strlen(line) - 1; |
84 | if (line[l] == '\n') { | 85 | if (line[l] == '\n') { |