mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-24 03:40:40 -04:00
r15320@tombo: nickm | 2008-04-24 21:29:06 -0400
Yes, niels says this is safe. svn:r727
This commit is contained in:
parent
94fb4d0a1e
commit
fe2e7307f3
3
event.c
3
event.c
@ -688,8 +688,7 @@ event_new(struct event_base *base, evutil_socket_t fd, short events, void (*cb)(
|
|||||||
void
|
void
|
||||||
event_free(struct event *ev)
|
event_free(struct event *ev)
|
||||||
{
|
{
|
||||||
/* make sure that this event won't be coming back to haunt us.
|
/* make sure that this event won't be coming back to haunt us. */
|
||||||
* XXX this is safe, right? */
|
|
||||||
event_del(ev);
|
event_del(ev);
|
||||||
mm_free(ev);
|
mm_free(ev);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user