mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: free the right item during tray destruction
Also added a comment to make more obvious the reason for comparing sni->status[0] == 'N'
This commit is contained in:
parent
140bc2dd5b
commit
b666fc76a6
2 changed files with 3 additions and 3 deletions
|
|
@ -79,7 +79,7 @@ void destroy_tray(struct swaybar_tray *tray) {
|
|||
finish_host(&tray->host_xdg);
|
||||
finish_host(&tray->host_kde);
|
||||
for (int i = 0; i < tray->items->length; ++i) {
|
||||
destroy_sni(tray->items->items[0]);
|
||||
destroy_sni(tray->items->items[i]);
|
||||
}
|
||||
list_free(tray->items);
|
||||
destroy_watcher(tray->watcher_xdg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue