fix a memory leak in the mainloop timers
This commit is contained in:
parent
4be58bf137
commit
70a31e8904
1 changed files with 2 additions and 2 deletions
|
@ -594,8 +594,8 @@ static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait)
|
||||||
if (curr->func(curr->data)) {
|
if (curr->func(curr->data)) {
|
||||||
g_time_val_add(&curr->timeout, curr->delay);
|
g_time_val_add(&curr->timeout, curr->delay);
|
||||||
insert_timer(loop, curr);
|
insert_timer(loop, curr);
|
||||||
} else if (curr->destroy) {
|
} else {
|
||||||
curr->destroy(curr->data);
|
curr->del_me = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if at least one timer fires, then don't wait on X events, as there
|
/* if at least one timer fires, then don't wait on X events, as there
|
||||||
|
|
Loading…
Reference in a new issue