]> Dogcows Code - chaz/openbox/commitdiff
fire the destroy fnuction for timers when they are removed
authorDana Jansens <danakj@orodu.net>
Mon, 13 Oct 2003 00:28:25 +0000 (00:28 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 13 Oct 2003 00:28:25 +0000 (00:28 +0000)
openbox/mainloop.c

index f9aaf5ed8b71fd323a0ae362929be475db28edff..3f9381f3e7dc12c6f8996bc84b69a7d48295a15e 100644 (file)
@@ -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;
         }
This page took 0.02504 seconds and 4 git commands to generate.