diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-29 15:19:42 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-29 22:11:08 -0400 |
commit | 0464a9910da2b99abea0ab202e179d66260a893b (patch) | |
tree | 6d81a2c85f6520f5ffc888d09894e02604789e05 /swaybar/status_line.c | |
parent | Implement status line (diff) | |
download | sway-0464a9910da2b99abea0ab202e179d66260a893b.tar.gz sway-0464a9910da2b99abea0ab202e179d66260a893b.tar.zst sway-0464a9910da2b99abea0ab202e179d66260a893b.zip |
Clean up status line on exit
Diffstat (limited to 'swaybar/status_line.c')
-rw-r--r-- | swaybar/status_line.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/swaybar/status_line.c b/swaybar/status_line.c index ff668c9c..5b131aee 100644 --- a/swaybar/status_line.c +++ b/swaybar/status_line.c | |||
@@ -73,6 +73,8 @@ struct status_line *status_line_init(char *cmd) { | |||
73 | return status; | 73 | return status; |
74 | } | 74 | } |
75 | 75 | ||
76 | void status_line_free(struct status_line *line) { | 76 | void status_line_free(struct status_line *status) { |
77 | free(line); | 77 | close(status->read_fd); |
78 | close(status->write_fd); | ||
79 | free(status); | ||
78 | } | 80 | } |