From: Guus Sliepen Date: Sun, 29 May 2011 20:34:19 +0000 (+0200) Subject: Remove outgoing event in free_connection(). X-Git-Tag: release-1.1pre1~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d440336c3ce68719e23b2fc51fac368e23352ad;p=oweals%2Ftinc.git Remove outgoing event in free_connection(). --- diff --git a/src/connection.c b/src/connection.c index 5a6bc74..7fbb0fc 100644 --- a/src/connection.c +++ b/src/connection.c @@ -81,6 +81,9 @@ void free_connection(connection_t *c) { if(event_initialized(&c->inevent)) event_del(&c->inevent); + if(event_initialized(&c->outevent)) + event_del(&c->outevent); + free(c); }