[evolution-rss/evolution-rss-0-2-0] Bug 647142 - crash when adding a new feed



commit 96cb530c47cb3f33adea85248d5a8c4e2c788da2
Author: Lucian Langa <lucilanga gnome org>
Date:   Fri Apr 8 11:11:37 2011 +0300

    Bug 647142 - crash when adding a new feed

 src/network-soup.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/network-soup.c b/src/network-soup.c
index 479f7d5..260bb21 100644
--- a/src/network-soup.c
+++ b/src/network-soup.c
@@ -681,11 +681,11 @@ net_get_unblocking(gchar *url,
 	if (info) {
 		g_signal_connect(G_OBJECT(msg), "got_chunk",
 			G_CALLBACK(got_chunk_cb), info);	//FIXME Find a way to free this maybe weak_ref
+		soup_message_set_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
+		soup_message_add_header_handler (msg, "got_body",
+			"Location", G_CALLBACK (redirect_handler), info);
 	}
 
-	soup_message_set_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
-	soup_message_add_header_handler (msg, "got_body",
-		"Location", G_CALLBACK (redirect_handler), soup_sess);
 
 	soup_session_queue_message (soup_sess, msg,
 		cb2, cbdata2);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]