fix potential SIGSEGV in bar cleanup
This commit is contained in:
parent
e40a0d33ca
commit
3572ecb42f
1 changed files with 4 additions and 2 deletions
6
dam.c
6
dam.c
|
@ -373,8 +373,10 @@ bar_destroy(Bar *bar)
|
|||
{
|
||||
wl_list_remove(&bar->link);
|
||||
bufpool_cleanup(&bar->pool);
|
||||
free(bar->layout);
|
||||
free(bar->title);
|
||||
if (bar->layout)
|
||||
free(bar->layout);
|
||||
if (bar->title)
|
||||
free(bar->title);
|
||||
drwl_setimage(bar->drw, NULL);
|
||||
drwl_destroy(bar->drw);
|
||||
zriver_output_status_v1_destroy(bar->output_status);
|
||||
|
|
Loading…
Add table
Reference in a new issue