diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-13 00:28:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-13 00:28:25 +0000 |
| commit | ef414287e51d0221685a3008d40d5093bec2d18e (patch) | |
| tree | 4fe70bd28159d1d6eb894f06f473f96511cae415 /openbox | |
| parent | ba38a0c856e9aaef01087802d552c45ccbd16b7e (diff) | |
fire the destroy fnuction for timers when they are removed
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/mainloop.c | 2 |
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; } |
