libpurple/protocols/bonjour/mdns_win32.c

changeset 21095
cf1a4ecbe7c3
parent 21093
b12665f5ca27
child 21612
9fce536735e3
--- 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);

mercurial