Changeset 63a520b


Ignore:
Timestamp:
2010-03-27T03:11:02Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
b95932e
Parents:
b9e020a
Message:

Collect that garbage.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    rb9e020a r63a520b  
    210210                irc_user_free( irc, iu->nick );
    211211        }
     212       
     213        while( irc->channels )
     214                irc_channel_free( irc->channels->data );
    212215       
    213216        if( irc->ping_source_id > 0 )
     
    592595                        irc->user->user = iu->user;
    593596                        irc->user->fullname = iu->fullname;
     597                        g_free( iu->fullname );
    594598                        g_free( iu->nick );
     599                        g_free( iu->host );
    595600                        g_free( iu );
    596601                       
  • irc_channel.c

    rb9e020a r63a520b  
    6060}
    6161
     62int irc_channel_free( irc_channel_t *ic )
     63{
     64        irc_t *irc = ic->irc;
     65       
     66        if( ic->flags & IRC_CHANNEL_JOINED )
     67                irc_channel_del_user( ic, irc->user );
     68       
     69        irc->channels = g_slist_remove( irc->channels, ic );
     70        g_slist_free( ic->users );
     71       
     72        g_free( ic->name );
     73        g_free( ic->topic );
     74        g_free( ic );
     75       
     76        return 1;
     77}
     78
    6279int irc_channel_add_user( irc_channel_t *ic, irc_user_t *iu )
    6380{
Note: See TracChangeset for help on using the changeset viewer.