mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Fix memory leaks in swaybar tray
This commit is contained in:
parent
5675a42def
commit
e8f589c3dc
4 changed files with 9 additions and 1 deletions
|
|
@ -105,6 +105,7 @@ static int timer_item_timer_cmp(const void *_timer_item, const void *_timer) {
|
|||
bool remove_timer(timer_t timer) {
|
||||
int index = list_seq_find(event_loop.timers, timer_item_timer_cmp, &timer);
|
||||
if (index != -1) {
|
||||
free(event_loop.timers->items[index]);
|
||||
list_del(event_loop.timers, index);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue