From ef414287e51d0221685a3008d40d5093bec2d18e Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 13 Oct 2003 00:28:25 +0000 Subject: [PATCH] fire the destroy fnuction for timers when they are removed --- openbox/mainloop.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openbox/mainloop.c b/openbox/mainloop.c index f9aaf5ed..3f9381f3 100644 --- a/openbox/mainloop.c +++ b/openbox/mainloop.c @@ -674,6 +674,8 @@ static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait) if (curr->del_me) { /* delete the top */ loop->timers = g_slist_delete_link(loop->timers, it); + if (curr->destroy) + curr->destroy(curr->data); g_free(curr); continue; } -- 2.39.2