diff src/conversation.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 1d43fda97960
children 649199f4730e
line wrap: on
line diff
--- a/src/conversation.c	Sat Nov 04 00:21:33 2000 +0000
+++ b/src/conversation.c	Sat Nov 04 03:08:54 2000 +0000
@@ -369,7 +369,17 @@
 	c->log_dialog = NULL;
 
 	if (c->is_chat) {
-		serv_chat_leave(c->gc, c->id);
+		if (c->gc)
+			serv_chat_leave(c->gc, c->id);
+		else {
+			/* bah */
+			while (c->in_room) {
+				char *tmp = c->in_room->data;
+				c->in_room = g_list_remove(c->in_room, tmp);
+				g_free(tmp);
+			}
+			g_free(c);
+		}
 	} else {
 	        delete_conversation(c);
 	}