mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
Merge pull request #558 from crondog/swaybarexit
Stop swaybar crashing without args
This commit is contained in:
commit
6db92bbb99
@ -199,9 +199,17 @@ static void terminate_status_command(pid_t pid) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void bar_teardown(struct bar *bar) {
|
void bar_teardown(struct bar *bar) {
|
||||||
free_config(bar->config);
|
if (bar->config) {
|
||||||
free_outputs(bar->outputs);
|
free_config(bar->config);
|
||||||
free_status_line(bar->status);
|
}
|
||||||
|
|
||||||
|
if (bar->outputs) {
|
||||||
|
free_outputs(bar->outputs);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (bar->status) {
|
||||||
|
free_status_line(bar->status);
|
||||||
|
}
|
||||||
|
|
||||||
/* close sockets/pipes */
|
/* close sockets/pipes */
|
||||||
if (bar->status_read_fd) {
|
if (bar->status_read_fd) {
|
||||||
|
Loading…
Reference in New Issue
Block a user