mirror of
https://github.com/swaywm/sway.git
synced 2025-10-28 05:40:16 -04:00
Clean up status line on exit
This commit is contained in:
parent
0d0ab7c5ce
commit
0464a9910d
2 changed files with 9 additions and 2 deletions
|
|
@ -73,6 +73,8 @@ struct status_line *status_line_init(char *cmd) {
|
|||
return status;
|
||||
}
|
||||
|
||||
void status_line_free(struct status_line *line) {
|
||||
free(line);
|
||||
void status_line_free(struct status_line *status) {
|
||||
close(status->read_fd);
|
||||
close(status->write_fd);
|
||||
free(status);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue