--- EV/EV.xs 2010/10/21 15:13:42 1.142 +++ EV/EV.xs 2010/10/23 22:25:44 1.143 @@ -1305,7 +1305,9 @@ void DESTROY (struct ev_loop *loop) CODE: - if (loop != evapi.default_loop) /* global destruction sucks */ + /* 1. the default loop shouldn't be freed by destroying it'S pelr loop object */ + /* 2. not doing so helps avoid many global destruction bugs in perl, too */ + if (loop != evapi.default_loop) ev_loop_destroy (loop); void ev_loop_fork (struct ev_loop *loop)