From 81e04e162bdc4517b2f357fd16dfd76f68245464 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 31 Mar 2010 22:32:25 -0400 Subject: nogaim.c is close to doing something useful again without speaking any IRC itself. --- protocols/bee.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'protocols/bee.c') diff --git a/protocols/bee.c b/protocols/bee.c index c6f48901..3f576b0b 100644 --- a/protocols/bee.c +++ b/protocols/bee.c @@ -23,25 +23,25 @@ bee_t *bee_new() void bee_free( bee_t *b ) { - while( b->accounts ) + account_t *acc = b->accounts; + + while( acc ) { - account_t *acc = b->accounts->data; - - /* if( acc->ic ) imc_logout( acc->ic, FALSE ); else if( acc->reconnect ) cancel_auto_reconnect( acc ); - */ if( acc->ic == NULL ) - {} //account_del( b, acc ); + account_del( b, acc ); else /* Nasty hack, but account_del() doesn't work in this case and we don't want infinite loops, do we? ;-) */ - b->accounts = g_slist_remove( b->accounts, acc ); + acc = acc->next; } while( b->set ) set_del( &b->set, b->set->key ); + + g_free( b ); } -- cgit v1.2.3