From eabc9d2c1b1d29aeb47162da64ce2b607c3d43ff Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Mon, 12 Apr 2010 00:49:32 +0200 Subject: Fixed cleanup issues when turning off an account. Also fixed syntax of *_user_free(). --- irc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'irc.c') diff --git a/irc.c b/irc.c index 4824d0ac..b6a1b9f9 100644 --- a/irc.c +++ b/irc.c @@ -209,10 +209,7 @@ void irc_free( irc_t * irc ) */ while( irc->users ) - { - irc_user_t *iu = irc->users->data; - irc_user_free( irc, iu->nick ); - } + irc_user_free( irc, (irc_user_t *) irc->users->data ); while( irc->channels ) irc_channel_free( irc->channels->data ); -- cgit v1.2.3