pidgin: 4acf23b5: Ref the slplink before destroying the DC...

qulogic at pidgin.im qulogic at pidgin.im
Fri May 21 18:03:08 EDT 2010


-----------------------------------------------------------------
Revision: 4acf23b5da3b1678f8103b564bc8d6cecfbec17e
Ancestor: ab3ac3a20bc3cbc0c4cb22e68f8b33ca6a5f0f87
Author: qulogic at pidgin.im
Date: 2010-05-17T08:45:46
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/4acf23b5da3b1678f8103b564bc8d6cecfbec17e

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

ChangeLog: 

Ref the slplink before destroying the DC, or we might lose our slpcall.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/directconn.c	5d2d178483f39ba9889d06d4c9976c95eb59c591
+++ libpurple/protocols/msn/directconn.c	22c344c7e1663a75674f1c5331ccbd480a8ca347
@@ -316,6 +316,7 @@ msn_dc_fallback_to_p2p(MsnDirectConn *dc
 void
 msn_dc_fallback_to_p2p(MsnDirectConn *dc)
 {
+	MsnSlpLink *slplink;
 	MsnSlpCall *slpcall;
 
 	purple_debug_info("msn", "msn_dc_try_fallback_to_p2p %p\n", dc);
@@ -323,11 +324,13 @@ msn_dc_fallback_to_p2p(MsnDirectConn *dc
 	g_return_if_fail(dc != NULL);
 
 	slpcall = dc->slpcall;
+	slplink = msn_slplink_ref(dc->slplink);
 
 	msn_dc_destroy(dc);
 
 	if (slpcall)
 		msn_slpcall_session_init(slpcall);
+	msn_slplink_unref(slplink);
 }
 
 static void


More information about the Commits mailing list