fix a memory leak in the mainloop timers
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
openbox/mainloop.c
→
openbox/mainloop.c
@@ -594,8 +594,8 @@ g_time_val_add(&curr->last, curr->delay);
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