… | |
… | |
1736 | void |
1736 | void |
1737 | ev_loop_destroy (EV_P) |
1737 | ev_loop_destroy (EV_P) |
1738 | { |
1738 | { |
1739 | int i; |
1739 | int i; |
1740 | |
1740 | |
|
|
1741 | /* mimic free (0) */ |
|
|
1742 | if (!EV_A) |
|
|
1743 | return; |
|
|
1744 | |
1741 | #if EV_CLEANUP_ENABLE |
1745 | #if EV_CLEANUP_ENABLE |
1742 | /* queue cleanup watchers (and execute them) */ |
1746 | /* queue cleanup watchers (and execute them) */ |
1743 | if (expect_false (cleanupcnt)) |
1747 | if (expect_false (cleanupcnt)) |
1744 | { |
1748 | { |
1745 | queue_events (EV_A_ (W *)cleanups, cleanupcnt, EV_CLEANUP); |
1749 | queue_events (EV_A_ (W *)cleanups, cleanupcnt, EV_CLEANUP); |