X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Futil%2Ftimer.c;h=9f7ca0d65c85713e9d951e7facf4cd14eefef65d;hp=01bd7686b972783b2bd324641fde78b9bf3eaa74;hb=caa0f8fbb901def18eab94a2e7f0131705967c5e;hpb=a72ae04bf96477f11d8bf24baea54596f6d3356b diff --git a/src/util/timer.c b/src/util/timer.c index 01bd768..9f7ca0d 100644 --- a/src/util/timer.c +++ b/src/util/timer.c @@ -398,6 +398,7 @@ void remove_from_multi_timeout(timeout* t) if (g_slist_length(mth->timeout_list) == 1) { timeout* last_timeout = mth->timeout_list->data; + mth->timeout_list = g_slist_remove(mth->timeout_list, last_timeout); free(last_timeout->multi_timeout); last_timeout->multi_timeout = 0; g_hash_table_remove(multi_timeouts, last_timeout);