diff libpurple/protocols/msn/switchboard.c @ 20420:8aa5e490dbf7

switchboards really can be referenced by multiple slplinks, I have no idea why this GList was replaced with a single slplink in msnp14 but it's possible that it was causing some problems. References #1142
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 20 May 2007 16:30:39 +0000
parents 4a099e4d0d09
children 5048651671e1
line wrap: on
line diff
--- a/libpurple/protocols/msn/switchboard.c	Sun May 20 15:59:10 2007 +0000
+++ b/libpurple/protocols/msn/switchboard.c	Sun May 20 16:30:39 2007 +0000
@@ -84,8 +84,8 @@
 	swboard->destroying = TRUE;
 
 	/* If it linked us is because its looking for trouble */
-	if (swboard->slplink != NULL)
-		msn_slplink_destroy(swboard->slplink);
+	while (swboard->slplinks != NULL)
+		msn_slplink_destroy(swboard->slplinks->data);
 
 	/* Destroy the message queue */
 	while ((msg = g_queue_pop_head(swboard->msg_queue)) != NULL)