diff src/protocols/msn/slpcall.c @ 13125:442b23efba54

[gaim-migrate @ 15487] sf patch #1424749, from Evan Schoenberg Fix MSN buddy icon rate-limiting problems committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 05 Feb 2006 21:30:43 +0000
parents a0e53af77e49
children 1b6c631012d9
line wrap: on
line diff
--- a/src/protocols/msn/slpcall.c	Sun Feb 05 20:06:31 2006 +0000
+++ b/src/protocols/msn/slpcall.c	Sun Feb 05 21:30:43 2006 +0000
@@ -77,6 +77,7 @@
 msn_slp_call_destroy(MsnSlpCall *slpcall)
 {
 	GList *e;
+	MsnSession *session;
 
 #ifdef MSN_DEBUG_SLPCALL
 	gaim_debug_info("msn", "slpcall_destroy: slpcall(%p)\n", slpcall);
@@ -112,12 +113,13 @@
 		}
 	}
 
-	/* Call the end_cb before removing the slpcall, as the end_cb may need the slplink */
-	if (slpcall->end_cb != NULL)
-		slpcall->end_cb(slpcall);
+	session = slpcall->slplink->session;
 
 	msn_slplink_remove_slpcall(slpcall->slplink, slpcall);
 
+	if (slpcall->end_cb != NULL)
+		slpcall->end_cb(slpcall, session);
+
 	g_free(slpcall);
 }