fire the destroy fnuction for timers when they are removed
This commit is contained in:
parent
ba38a0c856
commit
ef414287e5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue