summaryrefslogtreecommitdiff
path: root/ev_poll.c
diff options
context:
space:
mode:
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);
+}