projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70a31e8
)
fix a memory leak in the mainloop timers correctly
author
Dana Jansens
<danakj@orodu.net>
Sun, 14 Sep 2003 05:01:54 +0000
(
05:01
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 14 Sep 2003 05:01:54 +0000
(
05:01
+0000)
openbox/mainloop.c
patch
|
blob
|
history
diff --git
a/openbox/mainloop.c
b/openbox/mainloop.c
index
6061a46
..
4dce047
100644
(file)
--- a/
openbox/mainloop.c
+++ b/
openbox/mainloop.c
@@
-595,7
+595,9
@@
static void timer_dispatch(ObMainLoop *loop, GTimeVal **wait)
g_time_val_add(&curr->timeout, curr->delay);
insert_timer(loop, curr);
} else {
- curr->del_me = TRUE;
+ if (curr->destroy)
+ curr->destroy(curr->data);
+ g_free(curr);
}
/* if at least one timer fires, then don't wait on X events, as there