Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e77db596
Unverified
Commit
e77db596
authored
Feb 27, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 27, 2020
Browse files
Merge pull request #6189 from ShooterIT/del-event-loop
Del event loop
parents
652c5322
38488490
Changes
1
Show whitespace changes
Inline
Side-by-side
src/ae.c
View file @
e77db596
...
...
@@ -135,6 +135,13 @@ void aeDeleteEventLoop(aeEventLoop *eventLoop) {
aeApiFree
(
eventLoop
);
zfree
(
eventLoop
->
events
);
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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment