Changeset 81e04e1 for protocols/bee.c
- Timestamp:
- 2010-04-01T02:32:25Z (15 years ago)
- Branches:
- master
- Children:
- d860a8d
- Parents:
- 10a96f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/bee.c
r10a96f4 r81e04e1 24 24 void bee_free( bee_t *b ) 25 25 { 26 while( b->accounts ) 26 account_t *acc = b->accounts; 27 28 while( acc ) 27 29 { 28 account_t *acc = b->accounts->data;29 30 /*31 30 if( acc->ic ) 32 31 imc_logout( acc->ic, FALSE ); 33 32 else if( acc->reconnect ) 34 33 cancel_auto_reconnect( acc ); 35 */36 34 37 35 if( acc->ic == NULL ) 38 {} //account_del( b, acc );36 account_del( b, acc ); 39 37 else 40 38 /* Nasty hack, but account_del() doesn't work in this 41 39 case and we don't want infinite loops, do we? ;-) */ 42 b->accounts = g_slist_remove( b->accounts, acc );40 acc = acc->next; 43 41 } 44 42 45 43 while( b->set ) 46 44 set_del( &b->set, b->set->key ); 45 46 g_free( b ); 47 47 }
Note: See TracChangeset
for help on using the changeset viewer.