pidgin: 2946037e: Fix MSN FT for UIs that use our abstract...

qulogic at pidgin.im qulogic at pidgin.im
Mon May 10 21:25:40 EDT 2010


-----------------------------------------------------------------
Revision: 2946037e3974559877f516df2006883ad5846e19
Ancestor: f6cdf8776559775f9a4a72563e69741e139518bd
Author: hanzz at soc.pidgin.im
Date: 2010-05-11T01:21:49
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2946037e3974559877f516df2006883ad5846e19

Modified files:
        libpurple/protocols/msn/slp.c
        libpurple/protocols/msn/slplink.c

ChangeLog: 

Fix MSN FT for UIs that use our abstract FT stuff in ways that are slightly
different from Pidgin.

Fixes #11595.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slp.c	7bf6d92724e3a1e24706432385a193d6627ce8f3
+++ libpurple/protocols/msn/slp.c	3d242ac03cbaf8adbc721e591fcacb3021c2cb51
@@ -154,6 +154,7 @@ msn_xfer_write(const guchar *data, gsize
 	slpcall->u.outgoing.len = len;
 	slpcall->u.outgoing.data = data;
 	msn_slplink_send_msgpart(slpcall->slplink, slpcall->xfer_msg);
+	msn_message_unref(slpcall->xfer_msg->msg);
 	return MIN(1202, len);
 }
 
============================================================
--- libpurple/protocols/msn/slplink.c	054da587e3d92717734d878781b33b3d24a80efa
+++ libpurple/protocols/msn/slplink.c	a96a53635871463de0177e5a99fe4ebdc2c7d577
@@ -344,6 +344,7 @@ msg_ack(MsnMessage *msg, void *data)
 		if (slpmsg->slpcall->xfer && purple_xfer_get_status(slpmsg->slpcall->xfer) == PURPLE_XFER_STATUS_STARTED)
 		{
 			slpmsg->slpcall->xfer_msg = slpmsg;
+			msn_message_ref(msg);
 			purple_xfer_prpl_ready(slpmsg->slpcall->xfer);
 		}
 		else


More information about the Commits mailing list