# HG changeset patch # User Elliott Sales de Andrade # Date 1273131634 0 # Node ID 7a82bc59b63f227b75ff9adeb01399c70b72d784 # Parent f0de96a358772ea74ca1079a28852adc1af6f103 Close the DC when the slplink is empty. diff -r f0de96a35877 -r 7a82bc59b63f libpurple/protocols/msn/slplink.c --- 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 *