diff libpurple/protocols/msn/session.c @ 30317:ea96292336f0

Save and cancel-on-exit any URL requests, instead of checking the connection for validity when it might be gone.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 31 Jul 2010 20:47:31 +0000
parents 88a047f92c39
children 6c59e8ad1261 e53f81486d57
line wrap: on
line diff
--- a/libpurple/protocols/msn/session.c	Fri Jul 30 07:28:00 2010 +0000
+++ b/libpurple/protocols/msn/session.c	Sat Jul 31 20:47:31 2010 +0000
@@ -57,6 +57,11 @@
 
 	session->destroying = TRUE;
 
+	while (session->url_datas) {
+		purple_util_fetch_url_cancel(session->url_datas->data);
+		session->url_datas = g_slist_delete_link(session->url_datas, session->url_datas);
+	}
+
 	if (session->connected)
 		msn_session_disconnect(session);