]> Dogcows Code - chaz/openbox/commitdiff
fix a memory leak in the mainloop timers
authorDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 04:40:09 +0000 (04:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 14 Sep 2003 04:40:09 +0000 (04:40 +0000)
openbox/mainloop.c

index 397f8ae21a4aced2ad6b1949abb9b9bcc59f08fa..6061a4606f50902e7f242d378b768e084015b326 100644 (file)
@@ -594,8 +594,8 @@ static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait)
        if (curr->func(curr->data)) {
             g_time_val_add(&curr->timeout, curr->delay);
             insert_timer(loop, curr);
-        } else if (curr->destroy) {
-            curr->destroy(curr->data);
+        } else {
+            curr->del_me = TRUE;
         }
 
        /* if at least one timer fires, then don't wait on X events, as there
This page took 0.024959 seconds and 4 git commands to generate.