diff libpurple/protocols/msn/slplink.c @ 30129: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 bc9f74e9f596
children 8c1a2ef5a713 562498203fe8
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;
 	}