summaryrefslogtreecommitdiff
path: root/ev_poll.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_poll.c
parentbaf84e3741d88472c270efb118be8e3621ebe2d8 (diff)
better destroy support, separate into default loop and additional loops
Diffstat (limited to 'ev_poll.c')
-rw-r--r--ev_poll.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/ev_poll.c b/ev_poll.c
index 07b1f5c..7a17d4f 100644
--- a/ev_poll.c
+++ b/ev_poll.c
@@ -101,5 +101,15 @@ poll_init (EV_P_ int flags)
method_modify = poll_modify;
method_poll = poll_poll;
+ pollidxs = 0; pollidxmax = 0;
+ polls = 0; pollsmax = 0; pollscnt = 0;
+
return EVMETHOD_POLL;
}
+
+static void
+poll_destroy (EV_P)
+{
+ free (pollidxs);
+ free (polls);
+}