From: Dana Jansens Date: Mon, 13 Oct 2003 00:28:25 +0000 (+0000) Subject: fire the destroy fnuction for timers when they are removed X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ef414287e51d0221685a3008d40d5093bec2d18e;p=chaz%2Fopenbox fire the destroy fnuction for timers when they are removed --- 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; }