Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/soap.c @ 21101:741c3b5eac21
propagate from branch 'im.pidgin.pidgin' (head cf95a43fbd6666b7d2e750c182d7b85b047582c0)
to branch 'im.pidgin.cpw.khc.msnp14.soap' (head 1bd638d193e3a865ce99ed451afc25d957d7c9a2)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Sun, 14 Oct 2007 22:18:59 +0000 |
parents | 29d8c86c14cd c6f601a8eeba |
children | f387e8c671a4 |
comparison
equal
deleted
inserted
replaced
21100:29d8c86c14cd | 21101:741c3b5eac21 |
---|---|
129 msn_soap_init(MsnSoapConn *soapconn,char * host, gboolean ssl, | 129 msn_soap_init(MsnSoapConn *soapconn,char * host, gboolean ssl, |
130 MsnSoapSslConnectCbFunction connect_cb, | 130 MsnSoapSslConnectCbFunction connect_cb, |
131 MsnSoapSslErrorCbFunction error_cb) | 131 MsnSoapSslErrorCbFunction error_cb) |
132 { | 132 { |
133 purple_debug_misc("MSN SOAP","Initializing SOAP connection\n"); | 133 purple_debug_misc("MSN SOAP","Initializing SOAP connection\n"); |
134 g_free(soapconn->login_host); | |
134 soapconn->login_host = g_strdup(host); | 135 soapconn->login_host = g_strdup(host); |
135 soapconn->ssl_conn = ssl; | 136 soapconn->ssl_conn = ssl; |
136 soapconn->connect_cb = connect_cb; | 137 soapconn->connect_cb = connect_cb; |
137 soapconn->error_cb = error_cb; | 138 soapconn->error_cb = error_cb; |
138 } | 139 } |
202 | 203 |
203 /*destroy the soap connection*/ | 204 /*destroy the soap connection*/ |
204 void | 205 void |
205 msn_soap_destroy(MsnSoapConn *soapconn) | 206 msn_soap_destroy(MsnSoapConn *soapconn) |
206 { | 207 { |
207 if(soapconn->login_host) | 208 g_free(soapconn->login_host); |
208 g_free(soapconn->login_host); | 209 |
209 | 210 g_free(soapconn->login_path); |
210 if(soapconn->login_path) | |
211 g_free(soapconn->login_path); | |
212 | 211 |
213 /*remove the write handler*/ | 212 /*remove the write handler*/ |
214 if (soapconn->output_handler > 0){ | 213 if (soapconn->output_handler > 0){ |
215 purple_input_remove(soapconn->output_handler); | 214 purple_input_remove(soapconn->output_handler); |
216 soapconn->output_handler = 0; | 215 soapconn->output_handler = 0; |