Mercurial > pidgin.yaz
comparison src/protocols/msn/servconn.c @ 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 | 46d7ad0dfa26 |
children | 5419c37a6b0c |
comparison
equal
deleted
inserted
replaced
5743:af159a5bbaa0 | 5744:6b87c127fe7b |
---|---|
126 | 126 |
127 g_free(servconn->msg_passport); | 127 g_free(servconn->msg_passport); |
128 g_free(servconn->msg_friendly); | 128 g_free(servconn->msg_friendly); |
129 | 129 |
130 msn_message_destroy(msg); | 130 msn_message_destroy(msg); |
131 entry->msg = NULL; | |
131 } | 132 } |
132 } | 133 } |
133 | 134 |
134 return result; | 135 return result; |
135 } | 136 } |
211 msn_servconn_disconnect(MsnServConn *servconn) | 212 msn_servconn_disconnect(MsnServConn *servconn) |
212 { | 213 { |
213 g_return_if_fail(servconn != NULL); | 214 g_return_if_fail(servconn != NULL); |
214 g_return_if_fail(servconn->connected); | 215 g_return_if_fail(servconn->connected); |
215 | 216 |
216 close(servconn->fd); | |
217 | |
218 if (servconn->inpa) | 217 if (servconn->inpa) |
219 gaim_input_remove(servconn->inpa); | 218 gaim_input_remove(servconn->inpa); |
219 | |
220 close(servconn->fd); | |
220 | 221 |
221 g_free(servconn->rxqueue); | 222 g_free(servconn->rxqueue); |
222 | 223 |
223 while (servconn->txqueue != NULL) { | 224 while (servconn->txqueue != NULL) { |
224 g_free(servconn->txqueue->data); | 225 g_free(servconn->txqueue->data); |