changeset 30553:a83167dd305c

And another one just like 94fa017925fa206fc36f520ee42c54f57429b4e1. But this time, the switchboard might not get destroyed immediately, so you'd get it trying to destroy the slplink when it times out instead. I think this fixes #12043.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 29 May 2010 22:19:12 +0000
parents df89dd9fc267
children 74776878c055
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Sat May 29 15:38:54 2010 +0000
+++ b/libpurple/protocols/msn/slplink.c	Sat May 29 22:19:12 2010 +0000
@@ -209,6 +209,7 @@
 	 * If nothing else is using it then this might cause swboard to be
 	 * destroyed. */
 	if (slplink->slp_calls == NULL && slplink->swboard != NULL) {
+		slplink->swboard->slplinks = g_list_remove(slplink->swboard->slplinks, slplink);
 		msn_switchboard_release(slplink->swboard, MSN_SB_FLAG_FT);
 		slplink->swboard = NULL;
 	}