Changeset 81e04e1 for protocols/bee.c


Ignore:
Timestamp:
2010-04-01T02:32:25Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d860a8d
Parents:
10a96f4
Message:

nogaim.c is close to doing something useful again without speaking any IRC
itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee.c

    r10a96f4 r81e04e1  
    2424void bee_free( bee_t *b )
    2525{
    26         while( b->accounts )
     26        account_t *acc = b->accounts;
     27       
     28        while( acc )
    2729        {
    28                 account_t *acc = b->accounts->data;
    29                
    30                 /*
    3130                if( acc->ic )
    3231                        imc_logout( acc->ic, FALSE );
    3332                else if( acc->reconnect )
    3433                        cancel_auto_reconnect( acc );
    35                 */
    3634               
    3735                if( acc->ic == NULL )
    38                         {} //account_del( b, acc );
     36                        account_del( b, acc );
    3937                else
    4038                        /* Nasty hack, but account_del() doesn't work in this
    4139                           case and we don't want infinite loops, do we? ;-) */
    42                         b->accounts = g_slist_remove( b->accounts, acc );
     40                        acc = acc->next;
    4341        }
    4442       
    4543        while( b->set )
    4644                set_del( &b->set, b->set->key );
     45       
     46        g_free( b );
    4747}
Note: See TracChangeset for help on using the changeset viewer.