Changeset ffb6dea


Ignore:
Timestamp:
2010-03-20T21:58:04Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
bc090f0
Parents:
e5a8118
Message:

Killing some memory leaks.

Location:
protocols/msn
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    re5a8118 rffb6dea  
    101101               
    102102                g_free( md->passport_token );
     103                g_free( md->lock_key );
    103104               
    104105                g_free( md );
  • protocols/msn/soap.c

    re5a8118 rffb6dea  
    103103                http_req, msn_soap_handle_response, soap_req );
    104104       
     105        g_free( http_req );
     106       
    105107        return soap_req->http_req != NULL;
    106108}
     
    123125        st = soap_req->handle_response( soap_req );
    124126       
     127        g_free( soap_req->url );
     128        g_free( soap_req->action );
     129        g_free( soap_req->payload );
     130        soap_req->url = soap_req->action = soap_req->payload = NULL;
     131       
    125132        if( st == MSN_SOAP_RETRY && --soap_req->ttl )
    126133                msn_soap_send_request( soap_req );
     
    128135        {
    129136                soap_req->free_data( soap_req );
    130                 g_free( soap_req->url );
    131                 g_free( soap_req->action );
    132                 g_free( soap_req->payload );
    133137                g_free( soap_req );
    134138        }
  • protocols/msn/soap.h

    re5a8118 rffb6dea  
    6969"<soap:Body>" \
    7070  "<MessageType xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">text</MessageType>" \
    71   "<Content xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">MIME-Version: 1.0\r\n" \
     71  "<Content xmlns=\"http://messenger.msn.com/ws/2004/09/oim/\">" \
     72    "MIME-Version: 1.0\r\n" \
    7273    "Content-Type: text/plain; charset=UTF-8\r\n" \
    7374    "Content-Transfer-Encoding: base64\r\n" \
Note: See TracChangeset for help on using the changeset viewer.