Mercurial > pidgin.yaz
diff src/multi.c @ 1063:e1408fb04c36
[gaim-migrate @ 1073]
updated HACKING to describe gaim_connection/aim_user/prpl.
updated FAQ to answer some questions about multiple connections.
made it so you're not able to send a message in a chat room that you're no longer in (i.e. when you were in the room but sign off)
free'd the buddy list when the connection is destroyed
tried to prevent set_buddy from being called before the buddy list is drawn
i think there was something else
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 04 Nov 2000 03:08:54 +0000 |
parents | 4927ce25d8cc |
children | 2cff18c2f9c6 |
line wrap: on
line diff
--- a/src/multi.c Sat Nov 04 00:21:33 2000 +0000 +++ b/src/multi.c Sat Nov 04 03:08:54 2000 +0000 @@ -66,7 +66,22 @@ void destroy_gaim_conn(struct gaim_connection *gc) { + GSList *g = gc->groups; + GSList *h; + struct group *m; + struct buddy *n; connections = g_slist_remove(connections, gc); + while (g) { + m = (struct group *)g->data; + g = g_slist_remove(g, m); + h = m->members; + while (h) { + n = (struct buddy *)h->data; + h = g_slist_remove(h, n); + g_free(n); + } + g_free(m); + } g_free(gc); redo_convo_menus(); if (!connections && mainwindow)