changeset 24607:eacf48c09ccc

Fix a crash in purple_accounts_delete that happens when the buddy list hasn't yet been initialized. Fixes #7603. committer: John Bailey <rekkanoryo@rekkanoryo.org>
author Florian Quèze <florian@instantbird.org>
date Sat, 06 Dec 2008 19:16:21 +0000
parents 918738a0bba4
children a95356c17b5c
files libpurple/account.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/account.c	Sat Dec 06 13:30:06 2008 +0000
+++ b/libpurple/account.c	Sat Dec 06 19:16:21 2008 +0000
@@ -2499,7 +2499,7 @@
 	purple_accounts_remove(account);
 
 	/* Remove this account's buddies */
-	for (gnode = purple_get_blist()->root; gnode != NULL; gnode = gnode->next) {
+	for (gnode = purple_blist_get_root(); gnode != NULL; gnode = gnode->next) {
 		if (!PURPLE_BLIST_NODE_IS_GROUP(gnode))
 			continue;