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