mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
Free last line in swaybar
This commit is contained in:
parent
c0f75f68b9
commit
36bf4d24cf
1 changed files with 1 additions and 0 deletions
|
@ -79,6 +79,7 @@ void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
|
|||
|
||||
void update() {
|
||||
if (!feof(command)) {
|
||||
free(line);
|
||||
line = read_line(command);
|
||||
int l = strlen(line) - 1;
|
||||
if (line[l] == '\n') {
|
||||
|
|
Loading…
Reference in a new issue