Changeset eabc9d2 for protocols/nogaim.c


Ignore:
Timestamp:
2010-04-11T22:49:32Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6c56f42
Parents:
d986463
Message:

Fixed cleanup issues when turning off an account. Also fixed syntax of
*_user_free().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    rd986463 reabc9d2  
    327327        ic->away = NULL;
    328328       
    329         for( l = bee->users; l; l = l->next )
     329        for( l = bee->users; l; )
    330330        {
    331331                bee_user_t *bu = l->data;
     332                GSList *next = l->next;
    332333               
    333334                if( bu->ic == ic )
    334                         bee_user_free( bee, ic, bu->handle );
     335                        bee_user_free( bee, bu );
     336               
     337                l = next;
    335338        }
    336339       
     
    403406void imcb_remove_buddy( struct im_connection *ic, const char *handle, char *group )
    404407{
    405         bee_user_free( ic->bee, ic, handle );
     408        bee_user_free( ic->bee, bee_user_by_handle( ic->bee, ic, handle ) );
    406409}
    407410
Note: See TracChangeset for help on using the changeset viewer.