changeset 26819: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 9cb95f21979d
children 839c5481b32a
files libpurple/blist.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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);