diff --git a/event.c b/event.c index cef2047..c66db35 100644 --- a/event.c +++ b/event.c @@ -110,7 +110,7 @@ void event_base_free (struct event_base *base) dLOOPbase; #if EV_MULTIPLICITY - if (ev_default_loop (EVFLAG_AUTO) != loop) + if (!is_default_loop (loop)) ev_loop_destroy (loop); #endif }