Mercurial > pidgin
diff libpurple/protocols/msn/soap2.c @ 23450:b82a17934604
fixed a memleak or 3, or maybe 4, or 5. Some of these applies to the p14
code as well
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Wed, 26 Dec 2007 02:30:07 +0000 |
parents | bac263f5afe7 |
children | bca58b00afab |
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap2.c Wed Dec 26 02:27:18 2007 +0000 +++ b/libpurple/protocols/msn/soap2.c Wed Dec 26 02:30:07 2007 +0000 @@ -229,6 +229,7 @@ } g_free(faultdata); + msn_soap_message_destroy(response); return TRUE; } else if (g_str_equal(faultdata, "wsse:FailedAuthentication")) { xmlnode *reason = xmlnode_get_child(body, "faultstring"); @@ -240,6 +241,7 @@ g_free(reasondata); g_free(faultdata); + msn_soap_message_destroy(response); return FALSE; } @@ -252,6 +254,7 @@ conn->current_request = NULL; request->cb(request->message, response, request->cb_data); + msn_soap_message_destroy(response); msn_soap_request_destroy(request); }