Mercurial > pidgin
diff src/protocols/msn/soap.c @ 19822:509383ef25f8
[gaim-migrate @ 17015]
delete oim integration ok
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Thu, 24 Aug 2006 16:38:30 +0000 |
parents | cf0611260c6b |
children | 1b6c631012d9 |
line wrap: on
line diff
--- a/src/protocols/msn/soap.c Thu Aug 24 14:21:43 2006 +0000 +++ b/src/protocols/msn/soap.c Thu Aug 24 16:38:30 2006 +0000 @@ -141,12 +141,23 @@ msn_soap_set_process_step(soapconn,MSN_SOAP_UNCONNECTED); } +/*clean the unhandled SOAP request*/ +void +msn_soap_clean_unhandled_request(MsnSoapConn *soapconn) +{ + MsnSoapReq *request; + + g_return_if_fail(soapconn != NULL); + + while ((request = g_queue_pop_head(soapconn->soap_queue)) != NULL){ + msn_soap_request_free(request); + } +} + /*destroy the soap connection*/ void msn_soap_destroy(MsnSoapConn *soapconn) { - MsnSoapReq *request; - if(soapconn->login_host) g_free(soapconn->login_host); @@ -168,9 +179,8 @@ msn_soap_close(soapconn); /*process the unhandled soap request*/ - while ((request = g_queue_pop_head(soapconn->soap_queue)) != NULL){ - msn_soap_request_free(request); - } + msn_soap_clean_unhandled_request(soapconn); + g_queue_free(soapconn->soap_queue); g_free(soapconn); } @@ -551,7 +561,7 @@ "Content-Type:text/xml; charset=utf-8\r\n" "Cookie: MSPAuth=%s\r\n" "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n" - "Accept: text/*\r\n" + "Accept: */*\r\n" "Host: %s\r\n" "Content-Length: %d\r\n" "Connection: Keep-Alive\r\n"