Mercurial > pidgin
diff src/protocols/msn/msn.c @ 8368:57e5ef6b7a69
[gaim-migrate @ 9095]
This could possibly fix a segfault, but I'm not positive.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 29 Feb 2004 10:13:54 +0000 |
parents | 85dbaac926a7 |
children | 3d0178c4f390 |
line wrap: on
line diff
--- a/src/protocols/msn/msn.c Sun Feb 29 05:40:45 2004 +0000 +++ b/src/protocols/msn/msn.c Sun Feb 29 10:13:54 2004 +0000 @@ -504,10 +504,13 @@ { MsnSession *session = gc->proto_data; - if (session->http_method) - msn_http_session_uninit(session); + if (session != NULL) + { + if (session->http_method) + msn_http_session_uninit(session); - msn_session_destroy(session); + msn_session_destroy(session); + } gc->proto_data = NULL; }