aboutsummaryrefslogtreecommitdiffstats
path: root/mail/subscribe-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/subscribe-dialog.c')
-rw-r--r--mail/subscribe-dialog.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index 066ebe0a04..1f5b3eebad 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -864,12 +864,15 @@ populate_store_foreach (MailConfigService *service, SubscribeDialog *sc)
static void
populate_store_list (SubscribeDialog *sc)
{
+ const GSList *news;
GSList *sources;
-
+
sources = mail_config_get_sources ();
g_slist_foreach (sources, (GFunc)populate_store_foreach, sc);
- sources = mail_config_get_news ();
- g_slist_foreach (sources, (GFunc)populate_store_foreach, sc);
+ g_slist_free (sources);
+
+ news = mail_config_get_news ();
+ g_slist_foreach (news, (GFunc)populate_store_foreach, sc);
e_table_model_changed (sc->store_model);
}