diff --git a/src/ae.c b/src/ae.c index 453bea2c5..99c0b8600 100644 --- a/src/ae.c +++ b/src/ae.c @@ -149,6 +149,8 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) { aeTimeEvent *next_te, *te = eventLoop->timeEventHead; while (te) { next_te = te->next; + if (te->finalizerProc) + te->finalizerProc(eventLoop, te->clientData); zfree(te); te = next_te; }