all repos — openbox @ 861cfbdabee7b97e4eb87f117e5683394d550260

openbox fork - make it a bit more like ryudo

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

861cfbdabee7b97e4eb87f117e5683394d550260

parent

70a31e890435d57f02d5e95a4a09216e23eabd1b

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

jump to
M openbox/mainloop.copenbox/mainloop.c

@@ -595,7 +595,9 @@ if (curr->func(curr->data)) {

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