comparison libpurple/protocols/msn/msn.c @ 31160:7a26ff6c0044

propagate from branch 'im.pidgin.pidgin' (head 73717266fa7d3a35ac09e09781fc5b48e2954fab) to branch 'im.pidgin.cpw.qulogic.msnp16' (head 0e28179a771a31a9afec296749d9f6c1e7f7587c)
author Mark Doliner <mark@kingant.net>
date Thu, 22 Apr 2010 17:15:26 +0000
parents 77b2d015bbf5 b0bc67f42027
children 8e765543dc8b
comparison
equal deleted inserted replaced
31159:77b2d015bbf5 31160:7a26ff6c0044
703 static void 703 static void
704 t_msn_xfer_init(PurpleXfer *xfer) 704 t_msn_xfer_init(PurpleXfer *xfer)
705 { 705 {
706 MsnSlpLink *slplink = xfer->data; 706 MsnSlpLink *slplink = xfer->data;
707 msn_slplink_request_ft(slplink, xfer); 707 msn_slplink_request_ft(slplink, xfer);
708 msn_slplink_unref(slplink);
709 }
710
711 static void
712 t_msn_xfer_cancel_send(PurpleXfer *xfer)
713 {
714 MsnSlpLink *slplink = xfer->data;
715 msn_slplink_unref(slplink);
708 } 716 }
709 717
710 static PurpleXfer* 718 static PurpleXfer*
711 msn_new_xfer(PurpleConnection *gc, const char *who) 719 msn_new_xfer(PurpleConnection *gc, const char *who)
712 { 720 {
717 725
718 xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who); 726 xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who);
719 727
720 g_return_val_if_fail(xfer != NULL, NULL); 728 g_return_val_if_fail(xfer != NULL, NULL);
721 729
722 xfer->data = msn_session_get_slplink(session, who); 730 xfer->data = msn_slplink_ref(msn_session_get_slplink(session, who));
723 731
724 purple_xfer_set_init_fnc(xfer, t_msn_xfer_init); 732 purple_xfer_set_init_fnc(xfer, t_msn_xfer_init);
733 purple_xfer_set_cancel_send_fnc(xfer, t_msn_xfer_cancel_send);
725 734
726 return xfer; 735 return xfer;
727 } 736 }
728 737
729 static void 738 static void