# HG changeset patch # User Elliott Sales de Andrade # Date 1294184620 0 # Node ID b3a54678e51ac3dbc9ce4524ea8b368d826f5528 # Parent ce1bd217ce3d198f37605a2a2248d1c47b238b27 Using conn->current_request looks a bit iffy here. And even if it wasn't, this looks nicer. diff -r ce1bd217ce3d -r b3a54678e51a libpurple/protocols/msn/soap.c --- a/libpurple/protocols/msn/soap.c Tue Jan 04 23:36:56 2011 +0000 +++ b/libpurple/protocols/msn/soap.c Tue Jan 04 23:43:40 2011 +0000 @@ -281,12 +281,13 @@ char *path; if (purple_url_parse(url, &host, NULL, &path, NULL, NULL)) { - msn_soap_message_send_internal(conn->session, conn->current_request->message, - host, path, conn->current_request->secure, - conn->current_request->cb, conn->current_request->cb_data, TRUE); + MsnSoapRequest *req = conn->current_request; + conn->current_request = NULL; - msn_soap_request_destroy(conn->current_request, TRUE); - conn->current_request = NULL; + msn_soap_message_send_internal(conn->session, req->message, host, path, + req->secure, req->cb, req->cb_data, TRUE); + + msn_soap_request_destroy(req, TRUE); g_free(host); g_free(path);