diff libpurple/protocols/jabber/disco.c @ 28138:deecc1d663c4

Don't use pointers (even opaquely) once they're freed. Closes #9822.
author Paul Aurich <paul@darkrain42.org>
date Sun, 02 Aug 2009 05:34:11 +0000
parents cbbde19ce02d
children 2b9da4c0c47b
line wrap: on
line diff
--- a/libpurple/protocols/jabber/disco.c	Sun Aug 02 05:04:41 2009 +0000
+++ b/libpurple/protocols/jabber/disco.c	Sun Aug 02 05:34:11 2009 +0000
@@ -85,11 +85,11 @@
 
 	/* TODO: When we support zeroconf proxies, fix this to handle them */
 	if (!(sh->jid && sh->host && sh->port > 0)) {
+		js->bs_proxies = g_list_remove(js->bs_proxies, sh);
 		g_free(sh->jid);
 		g_free(sh->host);
 		g_free(sh->zeroconf);
 		g_free(sh);
-		js->bs_proxies = g_list_remove(js->bs_proxies, sh);
 	}
 }