im.pidgin.pidgin: 60c313e0859ab5b5106920e3133826ed0ec09703
datallah at pidgin.im
datallah at pidgin.im
Sun Oct 14 23:30:58 EDT 2007
-----------------------------------------------------------------
Revision: 60c313e0859ab5b5106920e3133826ed0ec09703
Ancestor: 431bbe2f21d80a57c4f4bd6187fa01f166e71bfa
Author: datallah at pidgin.im
Date: 2007-10-15T03:07:16
Branch: im.pidgin.pidgin
Modified files:
libpurple/protocols/msn/httpconn.c
libpurple/protocols/msn/switchboard.c
ChangeLog:
More leak fixes.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/httpconn.c c4c210f629cd20af9979a7f683f2da5af87e479d
+++ libpurple/protocols/msn/httpconn.c b5321bc2cf45112e240979eb85ad6ef1fd9aa52e
@@ -687,6 +687,17 @@ msn_httpconn_destroy(MsnHttpConn *httpco
g_free(httpconn->host);
+ while (httpconn->queue != NULL) {
+ MsnHttpQueueData *queue_data;
+
+ queue_data = (MsnHttpQueueData *) httpconn->queue->data;
+
+ httpconn->queue = g_list_remove_link(httpconn->queue, httpconn->queue);
+
+ g_free(queue_data->body);
+ g_free(queue_data);
+ }
+
purple_circ_buffer_destroy(httpconn->tx_buf);
if (httpconn->tx_handler > 0)
purple_input_remove(httpconn->tx_handler);
============================================================
--- libpurple/protocols/msn/switchboard.c d9d73a3c5f37dd4d528589c2bb0165f50a9dbde6
+++ libpurple/protocols/msn/switchboard.c d708d05dc7fd908df08bac61d702ef8261a0beeb
@@ -108,8 +108,8 @@ msn_switchboard_destroy(MsnSwitchBoard *
g_free(swboard->auth_key);
g_free(swboard->session_id);
- for (l = swboard->users; l != NULL; l = l->next)
- g_free(l->data);
+ for (; swboard->users; swboard->users = g_list_remove_link(swboard->users, swboard->users))
+ g_free(swboard->users->data);
session = swboard->session;
session->switches = g_list_remove(session->switches, swboard);
More information about the Commits
mailing list