mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
Stop swaybar crashing without args
This commit is contained in:
parent
0169ba02fa
commit
9c42557b66
1 changed files with 11 additions and 3 deletions
|
@ -199,9 +199,17 @@ static void terminate_status_command(pid_t pid) {
|
|||
}
|
||||
|
||||
void bar_teardown(struct bar *bar) {
|
||||
free_config(bar->config);
|
||||
free_outputs(bar->outputs);
|
||||
free_status_line(bar->status);
|
||||
if (bar->config) {
|
||||
free_config(bar->config);
|
||||
}
|
||||
|
||||
if (bar->outputs) {
|
||||
free_outputs(bar->outputs);
|
||||
}
|
||||
|
||||
if (bar->status) {
|
||||
free_status_line(bar->status);
|
||||
}
|
||||
|
||||
/* close sockets/pipes */
|
||||
if (bar->status_read_fd) {
|
||||
|
|
Loading…
Reference in a new issue