fire the destroy fnuction for timers when they are removed

This commit is contained in:
Dana Jansens 2003-10-13 00:28:25 +00:00
parent ba38a0c856
commit ef414287e5

View file

@ -674,6 +674,8 @@ static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait)
if (curr->del_me) {
/* delete the top */
loop->timers = g_slist_delete_link(loop->timers, it);
if (curr->destroy)
curr->destroy(curr->data);
g_free(curr);
continue;
}