Mercurial > pidgin.yaz
diff libpurple/protocols/msn/soap.c @ 25045:651cdeab9b99
conn->current_request can be NULL here.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 02 Feb 2009 16:13:11 +0000 |
parents | b474cd321e88 |
children | 62e619e4957e 96e54eb6100a |
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c Sun Feb 01 09:14:24 2009 +0000 +++ b/libpurple/protocols/msn/soap.c Mon Feb 02 16:13:11 2009 +0000 @@ -342,12 +342,14 @@ } if (fault || body) { - MsnSoapRequest *request = conn->current_request; - conn->current_request = NULL; - request->cb(request->message, response, - request->cb_data); + if (conn->current_request) { + MsnSoapRequest *request = conn->current_request; + conn->current_request = NULL; + request->cb(request->message, response, + request->cb_data); + msn_soap_request_destroy(request, FALSE); + } msn_soap_message_destroy(response); - msn_soap_request_destroy(request, FALSE); } return TRUE;