diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-31 22:32:25 -0400 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-31 22:32:25 -0400 | 
| commit | 81e04e162bdc4517b2f357fd16dfd76f68245464 (patch) | |
| tree | 9c916915ff7b5e46b6316f032871815a5e79de02 /protocols/bee.c | |
| parent | 10a96f44efbeb6af09e2728926ce15b6bda12131 (diff) | |
nogaim.c is close to doing something useful again without speaking any IRC
itself.
Diffstat (limited to 'protocols/bee.c')
| -rw-r--r-- | protocols/bee.c | 14 | 
1 files changed, 7 insertions, 7 deletions
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 );  }  | 
