Ignore:
Timestamp:
2016-10-16T06:51:53Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
2906268
Parents:
a08b2db
git-author:
dequis <dx@…> (16-10-16 06:50:49)
git-committer:
dequis <dx@…> (16-10-16 06:51:53)
Message:

Turn purple_chatlist_free() into a imcb_chat_list_free()

I found myself copypasting this to jabber. Might as well make it part of
the API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/bee_chat.c

    ra08b2db r6e991a9  
    285285        imcb_chat_list_finish(ic);
    286286}
     287
     288void imcb_chat_list_free(struct im_connection *ic)
     289{
     290        bee_chat_info_t *ci;
     291        GSList *l = ic->chatlist;
     292
     293        while (l) {
     294                ci = l->data;
     295                l = g_slist_delete_link(l, l);
     296
     297                g_free(ci->title);
     298                g_free(ci->topic);
     299                g_free(ci);
     300        }
     301
     302        ic->chatlist = NULL;
     303}
Note: See TracChangeset for help on using the changeset viewer.