diff options
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/msn/msn.c | 1 | ||||
-rw-r--r-- | protocols/msn/soap.c | 10 | ||||
-rw-r--r-- | protocols/msn/soap.h | 3 |
3 files changed, 10 insertions, 4 deletions
diff --git a/protocols/msn/msn.c b/protocols/msn/msn.c index 49ce9298..4d859346 100644 --- a/protocols/msn/msn.c +++ b/protocols/msn/msn.c @@ -100,6 +100,7 @@ static void msn_logout( struct im_connection *ic ) g_free( md->grouplist ); g_free( md->passport_token ); + g_free( md->lock_key ); g_free( md ); } diff --git a/protocols/msn/soap.c b/protocols/msn/soap.c index d3a022ec..f329cea9 100644 --- a/protocols/msn/soap.c +++ b/protocols/msn/soap.c @@ -102,6 +102,8 @@ static int msn_soap_send_request( struct msn_soap_req_data *soap_req ) soap_req->http_req = http_dorequest( url.host, url.port, url.proto == PROTO_HTTPS, http_req, msn_soap_handle_response, soap_req ); + g_free( http_req ); + return soap_req->http_req != NULL; } @@ -122,14 +124,16 @@ static void msn_soap_handle_response( struct http_request *http_req ) st = soap_req->handle_response( soap_req ); + g_free( soap_req->url ); + g_free( soap_req->action ); + g_free( soap_req->payload ); + soap_req->url = soap_req->action = soap_req->payload = NULL; + if( st == MSN_SOAP_RETRY && --soap_req->ttl ) msn_soap_send_request( soap_req ); else { soap_req->free_data( soap_req ); - g_free( soap_req->url ); - g_free( soap_req->action ); - g_free( soap_req->payload ); g_free( soap_req ); } } diff --git a/protocols/msn/soap.h b/protocols/msn/soap.h index 4e7d6627..687cc282 100644 --- a/protocols/msn/soap.h +++ b/protocols/msn/soap.h @@ -68,7 +68,8 @@ "</soap:Header>" \ "<soap:Body>" \ "<MessageType xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">text</MessageType>" \ - "<Content xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">MIME-Version: 1.0\r\n" \ + "<Content xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">" \ + "MIME-Version: 1.0\r\n" \ "Content-Type: text/plain; charset=UTF-8\r\n" \ "Content-Transfer-Encoding: base64\r\n" \ "X-OIM-Message-Type: OfflineMessage\r\n" \ |