# HG changeset patch
# User Daniel Atallah <daniel.atallah@gmail.com>
# Date 1193375416 0
# Node ID f119cd1cb47cd52392404dbaa4ef57432dd1124c
# Parent  aed039f5360b85ea2f5f68c64d9b6ad58dbcc69c
Fix a leak of the dns query results.

diff -r aed039f5360b -r f119cd1cb47c libpurple/protocols/bonjour/mdns_win32.c
--- a/libpurple/protocols/bonjour/mdns_win32.c	Fri Oct 26 05:07:17 2007 +0000
+++ b/libpurple/protocols/bonjour/mdns_win32.c	Fri Oct 26 05:10:16 2007 +0000
@@ -147,7 +147,11 @@
 	}
 
 	/* free the hosts list*/
-	g_slist_free(hosts);
+	while (hosts != NULL) {
+		hosts = g_slist_remove(hosts, hosts->data);
+		g_free(hosts->data);
+		hosts = g_slist_remove(hosts, hosts->data);
+	}
 
 	/* free the remaining args memory */
 	g_free(args->full_service_name);