]> git.llucax.com Git - software/libev.git/blobdiff - ev_poll.c
need to rethinkg design, maybe use 'proper' struct subclassing due to aliasing restri...
[software/libev.git] / ev_poll.c
index 07b1f5caf7a491c03356fbf9490fac5be485f505..b858b45491ef48faa908e29b833280d518ffa666 100644 (file)
--- 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;
 
   method_modify = poll_modify;
   method_poll   = poll_poll;
 
+  pollidxs = 0; pollidxmax = 0;
+  polls    = 0; pollmax    = 0; pollcnt = 0;
+
   return EVMETHOD_POLL;
 }
   return EVMETHOD_POLL;
 }
+
+static void
+poll_destroy (EV_P)
+{
+  free (pollidxs);
+  free (polls);
+}