all repos — openbox @ 70a31e890435d57f02d5e95a4a09216e23eabd1b

openbox fork - make it a bit more like ryudo

fix a memory leak in the mainloop timers
Dana Jansens danakj@orodu.net
commit

70a31e890435d57f02d5e95a4a09216e23eabd1b

parent

4be58bf13719fd22cb08a7f016eaf757640ccd05

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M openbox/mainloop.copenbox/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