diff libpurple/protocols/bonjour/jabber.c @ 19233:6e3cd5e80420

Don't trigger another libxml2 parse from within one of the parsing callbacks. References #1652.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 13 Aug 2007 21:02:17 +0000
parents 316be7e715c6
children 649ac48fce1d
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c	Mon Aug 13 06:24:47 2007 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Mon Aug 13 21:02:17 2007 +0000
@@ -371,6 +371,8 @@
 
 	purple_debug_info("bonjour", "Recieved conversation close notification from %s.\n", pb->name);
 
+	g_return_if_fail(bb != NULL);
+
 	/* Close the socket, clear the watcher and free memory */
 	bonjour_jabber_close_conversation(bb->conversation);
 	bb->conversation = NULL;