Ignore:
Timestamp:
2010-07-11T17:21:21Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
be999a5
Parents:
3759849 (diff), 00540d4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge with upstraem bitlbee 1.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/jabber_util.c

    r3759849 reb6df6a  
    665665}
    666666
     667static gboolean jabber_buddy_remove_all_cb( gpointer key, gpointer value, gpointer data )
     668{
     669        struct jabber_buddy *bud, *next;
     670       
     671        bud = value;
     672        while( bud )
     673        {
     674                next = bud->next;
     675                g_free( bud->ext_jid );
     676                g_free( bud->full_jid );
     677                g_free( bud->away_message );
     678                g_free( bud );
     679                bud = next;
     680        }
     681       
     682        return TRUE;
     683}
     684
     685void jabber_buddy_remove_all( struct im_connection *ic )
     686{
     687        struct jabber_data *jd = ic->proto_data;
     688       
     689        g_hash_table_foreach_remove( jd->buddies, jabber_buddy_remove_all_cb, NULL );
     690        g_hash_table_destroy( jd->buddies );
     691}
     692
    667693time_t jabber_get_timestamp( struct xt_node *xt )
    668694{
Note: See TracChangeset for help on using the changeset viewer.