fix a memory leak in the mainloop timers

This commit is contained in:
Dana Jansens 2003-09-14 04:40:09 +00:00
parent 4be58bf137
commit 70a31e8904

View file

@ -594,8 +594,8 @@ static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait)
if (curr->func(curr->data)) {
g_time_val_add(&curr->timeout, curr->delay);
insert_timer(loop, curr);
} else if (curr->destroy) {
curr->destroy(curr->data);
} else {
curr->del_me = TRUE;
}
/* if at least one timer fires, then don't wait on X events, as there