pidgin: 58248edd: NULL-ify one more link on destroy that m...

qulogic at pidgin.im qulogic at pidgin.im
Fri May 28 04:36:00 EDT 2010


-----------------------------------------------------------------
Revision: 58248edd8460bfdd2f9bfd5ffa09a90c6a23e1ea
Ancestor: 08a50785e510a347ae29a06979d734134bdf12e2
Author: qulogic at pidgin.im
Date: 2010-05-28T08:30:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/58248edd8460bfdd2f9bfd5ffa09a90c6a23e1ea

Modified files:
        libpurple/protocols/msn/slplink.c

ChangeLog: 

NULL-ify one more link on destroy that might lead to a crash.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c	340741ff99120f162c714d2b9661368002e4fa17
+++ libpurple/protocols/msn/slplink.c	3e78ff988727dc7e9bab0c22e4fac765fa669869
@@ -91,8 +91,10 @@ msn_slplink_destroy(MsnSlpLink *slplink)
 
 	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--;


More information about the Commits mailing list