pidgin: da604206: Close the DC when the slplink is empty.
qulogic at pidgin.im
qulogic at pidgin.im
Fri May 21 18:05:42 EDT 2010
-----------------------------------------------------------------
Revision: da604206b18f52b79c03f5cdd11dc0438e46038b
Ancestor: 54aa781089bd7c6e106a807c3d1ea98e9898ce1e
Author: qulogic at pidgin.im
Date: 2010-05-06T07:40:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/da604206b18f52b79c03f5cdd11dc0438e46038b
Modified files:
libpurple/protocols/msn/slplink.c
ChangeLog:
Close the DC when the slplink is empty.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c cb866df825e70c119e10dc92102ba5eb58b12c6e
+++ libpurple/protocols/msn/slplink.c 05c62400f205bbb59804692a424372b43d0e9da7
@@ -205,6 +205,10 @@ msn_slplink_remove_slpcall(MsnSlpLink *s
* 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 *
More information about the Commits
mailing list