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:
4be58bf
)
fix a memory leak in the mainloop timers
author
Dana Jansens
<danakj@orodu.net>
Sun, 14 Sep 2003 04:40:09 +0000
(
04:40
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 14 Sep 2003 04:40:09 +0000
(
04:40
+0000)
openbox/mainloop.c
patch
|
blob
|
history
diff --git
a/openbox/mainloop.c
b/openbox/mainloop.c
index
397f8ae
..
6061a46
100644
(file)
--- a/
openbox/mainloop.c
+++ b/
openbox/mainloop.c
@@
-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->de
stroy(curr->data)
;
+ } else {
+ curr->de
l_me = TRUE
;
}
/* if at least one timer fires, then don't wait on X events, as there