]> git.llucax.com Git - software/libev.git/blobdiff - ev_select.c
need to rethinkg design, maybe use 'proper' struct subclassing due to aliasing restri...
[software/libev.git] / ev_select.c
index 5738fe5eaf81fd920b09954c74b5f3061e4979e3..327c31326c6e47ce746ee38477ed8b23eee4dd44 100644 (file)
@@ -128,6 +128,22 @@ select_init (EV_P_ int flags)
   method_modify = select_modify;
   method_poll   = select_poll;
 
   method_modify = select_modify;
   method_poll   = select_poll;
 
+  vec_max = 0;
+  vec_ri  = 0; 
+  vec_ri  = 0;   
+  vec_wo  = 0; 
+  vec_wo  = 0; 
+
   return EVMETHOD_SELECT;
 }
 
   return EVMETHOD_SELECT;
 }
 
+static void
+select_destroy (EV_P)
+{
+  free (vec_ri);
+  free (vec_ro);
+  free (vec_wi);
+  free (vec_wo);
+}
+
+