Changeset 63a520b for irc_channel.c


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

Collect that garbage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.