diff libpurple/protocols/msn/slplink.c @ 30114:3f7f469ee1d0

NULL-ify one more link on destroy that might lead to a crash.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 28 May 2010 08:30:49 +0000
parents 287fc4ac2bd9
children bc9f74e9f596
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Fri May 28 07:19:00 2010 +0000
+++ b/libpurple/protocols/msn/slplink.c	Fri May 28 08:30:49 2010 +0000
@@ -91,8 +91,10 @@
 
 	g_return_if_fail(slplink != NULL);
 
-	if (slplink->swboard != NULL)
+	if (slplink->swboard != NULL) {
 		slplink->swboard->slplinks = g_list_remove(slplink->swboard->slplinks, slplink);
+		slplink->swboard = NULL;
+	}
 
 	if (slplink->refs > 1) {
 		slplink->refs--;