aboutsummaryrefslogtreecommitdiff
path: root/swaybar/event_loop.c
diff options
context:
space:
mode:
authorCalvin Lee <cyrus296@gmail.com>2017-07-16 17:59:16 -0700
committerCalvin Lee <cyrus296@gmail.com>2017-07-16 19:06:24 -0700
commite8f589c3dcb11b8f2aa778380381715b680a5ec8 (patch)
tree78a234d41e62b21f65fe1026db8d005ba36aa864 /swaybar/event_loop.c
parent5675a42def79ee8c2bbac32947034f1403aba4f6 (diff)
Fix memory leaks in swaybar tray
Diffstat (limited to 'swaybar/event_loop.c')
-rw-r--r--swaybar/event_loop.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/event_loop.c b/swaybar/event_loop.c
index b5861dda..0d1be1da 100644
--- a/swaybar/event_loop.c
+++ b/swaybar/event_loop.c
@@ -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;
}