diff src/protocols/msn/slp.c @ 9788:1e9ecca6c97e

[gaim-migrate @ 10656] "ixes sending declines when we would decline a request to an MSN file xfer. Fixes accidentally having 2 xfers of the same file in the transfer dialog when sending through MSN and SILC. Fixes crash when cancelling MSN file transfers. Should fix crash when removing old MSN transfers from the xfer window in MSN. Fixes MSN crash when the remote side sends a decline after we've canceled locally." --Dave West committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 20 Aug 2004 03:44:46 +0000
parents 35f22ba01bd7
children d0c196ebe176
line wrap: on
line diff
--- a/src/protocols/msn/slp.c	Fri Aug 20 03:40:33 2004 +0000
+++ b/src/protocols/msn/slp.c	Fri Aug 20 03:44:46 2004 +0000
@@ -92,7 +92,6 @@
 			content);
 
 	g_free(content);
-	gaim_xfer_add(xfer);
 	msn_slplink_unleash(slpcall->slplink);
 }
 
@@ -102,6 +101,9 @@
 	MsnSlpCall *slpcall;
 	char *content;
 
+	g_return_if_fail(xfer != NULL);
+	g_return_if_fail(xfer->data != NULL);
+
 	slpcall = xfer->data;
 
 	if (gaim_xfer_get_status(xfer) == GAIM_XFER_STATUS_CANCEL_LOCAL)