comparison src/protocols/oscar/oscar.c @ 7805:5f0bb52c0609

[gaim-migrate @ 8452] File transfer changes from marv. This fixes various ft related bugs, including: * Sometimes clicking cancel on a send would crash. * We seemed to leak the GaimXfer most of the time. * Choosing to not overwrite the file would cancel the receive altogether. This should fix all these issues. It would be nice if someone (SimGuy?) could test this for me, especially on windows, to make sure i didn't break anything. Jabber ft is untested, althoughi didn't make any changes in the jabber source. So, it should still work, i just can't comfirm it. Yahoo and OSCAR do still work. Amoung other things, this patch impliments some reference counting on the GaimXfer, so the ui can keep it around a while if it wants, without leaking it because we're afraid to destroy it. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 08 Dec 2003 04:58:07 +0000
parents 61b5d682ddb4
children 0555e59dfba9
comparison
equal deleted inserted replaced
7804:622c9149609c 7805:5f0bb52c0609
715 } 715 }
716 /* BBB */ 716 /* BBB */
717 while (od->file_transfers) { 717 while (od->file_transfers) {
718 GaimXfer *xfer; 718 GaimXfer *xfer;
719 xfer = (GaimXfer *)od->file_transfers->data; 719 xfer = (GaimXfer *)od->file_transfers->data;
720 gaim_xfer_destroy(xfer); 720 gaim_xfer_cancel_local(xfer);
721 } 721 }
722 while (od->requesticon) { 722 while (od->requesticon) {
723 char *sn = od->requesticon->data; 723 char *sn = od->requesticon->data;
724 od->requesticon = g_slist_remove(od->requesticon, sn); 724 od->requesticon = g_slist_remove(od->requesticon, sn);
725 free(sn); 725 free(sn);