changeset 30057:7a82bc59b63f

Close the DC when the slplink is empty.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 06 May 2010 07:40:34 +0000
parents f0de96a35877
children 0b22c840f4f4
files libpurple/protocols/msn/slplink.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Thu May 06 07:36:56 2010 +0000
+++ b/libpurple/protocols/msn/slplink.c	Thu May 06 07:40:34 2010 +0000
@@ -205,6 +205,10 @@
 	 * destroyed. */
 	if (slplink->slp_calls == NULL && slplink->swboard != NULL)
 		msn_switchboard_release(slplink->swboard, MSN_SB_FLAG_FT);
+
+	/* The slplink has no slpcalls in it, release it from the DC. */
+	if (slplink->slp_calls == NULL && slplink->dc != NULL)
+		msn_dc_destroy(slplink->dc);
 }
 
 MsnSlpCall *