[evolution-rss] do not free auth url before user/pass dialog



commit 8f8ac02df3b333393ba3f60d0ff0f93066673378
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Jul 26 13:47:56 2011 +0300

    do not free auth url before user/pass dialog

 TODO               |    1 +
 src/network-soup.c |    6 ++----
 src/rss.c          |    1 +
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/TODO b/TODO
index 356af11..8304a01 100644
--- a/TODO
+++ b/TODO
@@ -43,3 +43,4 @@
 	* detect rss-id changes (file changes) -> feeds downloaded all over again
 	* add evolution-rss.desktop file to integrate into browsers
 	* remove useless validation option
+	* checkbox - autodisable broken feeds
diff --git a/src/network-soup.c b/src/network-soup.c
index e83225d..52c5ec3 100644
--- a/src/network-soup.c
+++ b/src/network-soup.c
@@ -792,10 +792,10 @@ net_get_unblocking(gchar *url,
 	}
 
 	g_signal_connect (soup_sess, "authenticate",
-		G_CALLBACK (authenticate), (gpointer)mainurl?mainurl:url);
+		G_CALLBACK (authenticate), (gpointer)mainurl?mainurl:g_strdup(url));
 #if LIBSOUP_VERSION < 2003000
 	g_signal_connect (soup_sess, "reauthenticate",
-		G_CALLBACK (reauthenticate), (gpointer)mainurl?mainurl:url);
+		G_CALLBACK (reauthenticate), (gpointer)mainurl?mainurl:g_strdup(url));
 #endif
 
 	/* Queue an async HTTP request */
@@ -849,8 +849,6 @@ net_get_unblocking(gchar *url,
 ////	g_object_add_weak_pointer (G_OBJECT(msg), (gpointer)info);
 	g_object_weak_ref (G_OBJECT(msg), unblock_free, soup_sess);
 //	g_object_weak_ref (G_OBJECT(soup_sess), unblock_free, soup_sess);
-	if (mainurl)
-		g_free(mainurl);
 	return TRUE;
 }
 
diff --git a/src/rss.c b/src/rss.c
index 70afc3f..454cfd8 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -689,6 +689,7 @@ user_pass_cb(RSS_AUTH *auth_info, gint response, GtkDialog *dialog)
 			auth_info->session, auth_info->message);
 	}
 out:	gtk_widget_destroy(GTK_WIDGET(dialog));
+	g_free(auth_info->url);
 	g_free(auth_info);
 
 }



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