changeset 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 2206cd931caf
children c1de5487a755
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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--;