fix a memory leak in the mainloop timers correctly
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
openbox/mainloop.c
→
openbox/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