diff libpurple/blist.c @ 26901:73eeb91911f3

Break the links before telling the UI to remove the node
author Paul Aurich <paul@darkrain42.org>
date Mon, 04 May 2009 03:14:12 +0000
parents d97a130da290
children 8290e36a5a73
line wrap: on
line diff
--- a/libpurple/blist.c	Mon May 04 02:57:02 2009 +0000
+++ b/libpurple/blist.c	Mon May 04 03:14:12 2009 +0000
@@ -2732,6 +2732,10 @@
 	}
 
 	/* Allow the UI to free data */
+	node->parent = NULL;
+	node->child  = NULL;
+	node->next   = NULL;
+	node->prev   = NULL;
 	if (ui_ops && ui_ops->remove)
 		ui_ops->remove(purplebuddylist, node);