diff libpurple/protocols/msn/httpconn.c @ 20946:2c039a40babc

More leak fixes.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 15 Oct 2007 03:07:16 +0000
parents 1d9d5de48b9e
children 0cbfc19e4909
line wrap: on
line diff
--- a/libpurple/protocols/msn/httpconn.c	Mon Oct 15 02:39:07 2007 +0000
+++ b/libpurple/protocols/msn/httpconn.c	Mon Oct 15 03:07:16 2007 +0000
@@ -687,6 +687,17 @@
 
 	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);