summaryrefslogtreecommitdiff
path: root/ev_select.c
diff options
context:
space:
mode:
authorroot <root>2007-11-04 15:58:49 +0000
committerroot <root>2007-11-04 15:58:49 +0000
commit5e20ccfe261679c78f9aa365ac087fb0700e0f2b (patch)
tree1a45e376caae037cc6a6bedbf0f7d95fde17701d /ev_select.c
parentbaf84e3741d88472c270efb118be8e3621ebe2d8 (diff)
better destroy support, separate into default loop and additional loops
Diffstat (limited to 'ev_select.c')
-rw-r--r--ev_select.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/ev_select.c b/ev_select.c
index 5738fe5..327c313 100644
--- a/ev_select.c
+++ b/ev_select.c
@@ -128,6 +128,22 @@ select_init (EV_P_ int flags)
method_modify = select_modify;
method_poll = select_poll;
+ vec_max = 0;
+ vec_ri = 0;
+ vec_ri = 0;
+ vec_wo = 0;
+ vec_wo = 0;
+
return EVMETHOD_SELECT;
}
+static void
+select_destroy (EV_P)
+{
+ free (vec_ri);
+ free (vec_ro);
+ free (vec_wi);
+ free (vec_wo);
+}
+
+