diff options
| author | root <root> | 2007-11-04 15:58:49 +0000 | 
|---|---|---|
| committer | root <root> | 2007-11-04 15:58:49 +0000 | 
| commit | 5e20ccfe261679c78f9aa365ac087fb0700e0f2b (patch) | |
| tree | 1a45e376caae037cc6a6bedbf0f7d95fde17701d /ev_poll.c | |
| parent | baf84e3741d88472c270efb118be8e3621ebe2d8 (diff) | |
better destroy support, separate into default loop and additional loops
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); +} | 
