projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c834e64
)
iochan_man_destroy destroys channels
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Mar 2010 13:56:34 +0000
(14:56 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 11 Mar 2010 13:56:34 +0000
(14:56 +0100)
src/eventl.c
patch
|
blob
|
history
diff --git
a/src/eventl.c
b/src/eventl.c
index
3eff731
..
40f7a69
100644
(file)
--- a/
src/eventl.c
+++ b/
src/eventl.c
@@
-78,8
+78,17
@@
void iochan_man_destroy(iochan_man_t *mp)
{
if (*mp)
{
+ IOCHAN c;
if ((*mp)->sel_thread)
sel_thread_destroy((*mp)->sel_thread);
+
+ c = (*mp)->channel_list;
+ while (c)
+ {
+ IOCHAN c_next = c->next;
+ xfree(c);
+ c = c_next;
+ }
xfree(*mp);
*mp = 0;
}