commit
e77db59660
7
src/ae.c
7
src/ae.c
@ -135,6 +135,13 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) {
|
|||||||
aeApiFree(eventLoop);
|
aeApiFree(eventLoop);
|
||||||
zfree(eventLoop->events);
|
zfree(eventLoop->events);
|
||||||
zfree(eventLoop->fired);
|
zfree(eventLoop->fired);
|
||||||
|
/* Free time event. */
|
||||||
|
aeTimeEvent *next_te, *te = eventLoop->timeEventHead;
|
||||||
|
while (te) {
|
||||||
|
next_te = te->next;
|
||||||
|
zfree(te);
|
||||||
|
te = next_te;
|
||||||
|
}
|
||||||
zfree(eventLoop);
|
zfree(eventLoop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user