diff options
Diffstat (limited to 'ev_poll.c')
-rw-r--r-- | ev_poll.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); +} |