all repos — tint2 @ 23782a4414c08577cede3b027d4116e8187fe0cc

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Timer: fix use after free
o9000 mrovi9000@gmail.com
commit

23782a4414c08577cede3b027d4116e8187fe0cc

parent

1be85e66fe4e905a36b205bbee95a37a4755797c

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/util/timer.csrc/util/timer.c

@@ -384,6 +384,7 @@ struct timespec cur_time;

gettime(&cur_time); GSList *it = mth->timeout_list; while (it) { + GSList *next = it->next; timeout *t = it->data; if (++t->multi_timeout->current_count >= t->multi_timeout->count_to_expiration) { t->_callback(t->arg);

@@ -395,7 +396,7 @@ } else {

return; } } - it = it->next; + it = next; } }