X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmainloop.c;h=3f9381f3e7dc12c6f8996bc84b69a7d48295a15e;hb=f85c50bb4a7ea33e6e3733f3f58a35b62fd978ed;hp=f9aaf5ed8b71fd323a0ae362929be475db28edff;hpb=783f5aed00e65ddad29248b7258a5e1fb8ac29cd;p=chaz%2Fopenbox 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; }