Ignore:
Timestamp:
2007-07-02T22:12:03Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e900442
Parents:
5d7dc00
Message:

Added (and using) jabber_chat_free() for better memory management, fixed
channel name generation code in root_commands.c and fixed one memory leak
in jabber_buddy_remove_bare().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/conference.c

    r5d7dc00 r9da0bbf  
    6363       
    6464        return c;
     65}
     66
     67void jabber_chat_free( struct groupchat *c )
     68{
     69        struct jabber_chat *jc = c->data;
     70       
     71        jabber_buddy_remove_bare( c->ic, jc->name );
     72       
     73        g_free( jc->my_full_jid );
     74        g_free( jc->name );
     75        g_free( jc );
     76       
     77        imcb_chat_free( c );
    6578}
    6679
     
    192205               
    193206                if( bud == jc->me )
    194                 {
    195                         jabber_buddy_remove_bare( ic, jc->name );
    196                        
    197                         g_free( jc->name );
    198                         g_free( jc );
    199                         imcb_chat_free( chat );
    200                 }
     207                        jabber_chat_free( chat );
    201208        }
    202209}
Note: See TracChangeset for help on using the changeset viewer.