summaryrefslogtreecommitdiff
path: root/openbox/mainloop.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-13 00:28:25 +0000
committerDana Jansens <danakj@orodu.net>2003-10-13 00:28:25 +0000
commitef414287e51d0221685a3008d40d5093bec2d18e (patch)
tree4fe70bd28159d1d6eb894f06f473f96511cae415 /openbox/mainloop.c
parentba38a0c856e9aaef01087802d552c45ccbd16b7e (diff)
fire the destroy fnuction for timers when they are removed
Diffstat (limited to 'openbox/mainloop.c')
-rw-r--r--openbox/mainloop.c2
1 files changed, 2 insertions, 0 deletions
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;
}