# HG changeset patch # User Carlos Silva # Date 1186524446 0 # Node ID 2d90fb77398c1917f429fcbd4bfd74f5b8059a9b # Parent 79e9c94c34db194d3e571410b6d71e56a004172a msn_soap_read_buf() shouldn't be used after calling soapconn->read_cb as this callback function can sometimes free soapconn (such as in nexus_login_read_cb after closing nexus connection) diff -r 79e9c94c34db -r 2d90fb77398c libpurple/protocols/msn/soap.c --- a/libpurple/protocols/msn/soap.c Tue Aug 07 02:37:58 2007 +0000 +++ b/libpurple/protocols/msn/soap.c Tue Aug 07 22:07:26 2007 +0000 @@ -474,7 +474,6 @@ if ( soapconn->need_to_read > 0 ) { return; } - //g_free(body_len); /*remove the read handler*/ purple_input_remove(soapconn->input_handler); @@ -494,7 +493,6 @@ if ( soapconn->read_cb != NULL ) { soapconn->read_cb(soapconn, source, 0); } - msn_soap_free_read_buf(soapconn); } return; } @@ -502,7 +500,7 @@ void msn_soap_free_read_buf(MsnSoapConn *soapconn) { - if(soapconn->read_buf){ + if (soapconn->read_buf) { g_free(soapconn->read_buf); } soapconn->read_buf = NULL;