changeset 5744:6b87c127fe7b

[gaim-migrate @ 6168] Fixed the crash on disconnect in MSN, I think. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 04 Jun 2003 08:57:22 +0000
parents af159a5bbaa0
children cae58ab49118
files src/protocols/msn/servconn.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/servconn.c	Wed Jun 04 08:46:05 2003 +0000
+++ b/src/protocols/msn/servconn.c	Wed Jun 04 08:57:22 2003 +0000
@@ -128,6 +128,7 @@
 			g_free(servconn->msg_friendly);
 
 			msn_message_destroy(msg);
+			entry->msg = NULL;
 		}
 	}
 
@@ -213,11 +214,11 @@
 	g_return_if_fail(servconn != NULL);
 	g_return_if_fail(servconn->connected);
 
-	close(servconn->fd);
-
 	if (servconn->inpa)
 		gaim_input_remove(servconn->inpa);
 
+	close(servconn->fd);
+
 	g_free(servconn->rxqueue);
 
 	while (servconn->txqueue != NULL) {