libpurple/protocols/jabber/google.c

changeset 26782
0d61de90ae02
parent 26746
2a2d45ac9774
child 26795
e09a6fd69ee7
child 26981
93f90b138e5f
--- a/libpurple/protocols/jabber/google.c	Sun Apr 12 21:53:41 2009 +0000
+++ b/libpurple/protocols/jabber/google.c	Sun Apr 12 22:23:34 2009 +0000
@@ -1156,7 +1156,12 @@
 		}
 	}
 
-	g_slist_free(hosts);
+	while (hosts != NULL) {
+		hosts = g_slist_delete_link(hosts, hosts);
+		/* Free the address */
+		g_free(hosts->data);
+		hosts = g_slist_delete_link(hosts, hosts);
+	}
 }
 
 static void

mercurial