X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/228b0b302ab0857b23efad5a8b2429de2c0ccc00..6f16328ecec5b9add341be4e60ed9eeaa3adea67:/ev_poll.c?ds=sidebyside diff --git a/ev_poll.c b/ev_poll.c index 07b1f5c..b858b45 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; pollmax = 0; pollcnt = 0; + return EVMETHOD_POLL; } + +static void +poll_destroy (EV_P) +{ + free (pollidxs); + free (polls); +}