aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser-factory.c12
2 files changed, 13 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 608431f488..e78d9223c2 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-03-15 Miguel de Icaza <miguel@ximian.com>
+
+ * folder-browser-factory.c (folder_browser_setup_view_menus): Fix
+ memory leak.
+
2001-03-15 Jeffrey Stedfast <fejj@ximian.com>
* mail-account-editor.c (apply_changes): We don't care about SSL,
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index f898fa7593..dc125680a2 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -196,13 +196,17 @@ folder_browser_setup_view_menus (FolderBrowser *fb,
GalViewMenus *views;
GalViewFactory *factory;
ETableSpecification *spec;
- char *spec_string;
+ char *spec_string, *local_dir;
collection = gal_view_collection_new();
/* FIXME: Memory leak. */
- gal_view_collection_set_storage_directories(collection,
- EVOLUTION_DATADIR "/evolution/views/mail/",
- gnome_util_prepend_user_home("/evolution/views/mail/"));
+ local_dir = gnome_util_prepend_user_home ("/evolution/views/mail/");
+
+ gal_view_collection_set_storage_directories(
+ collection,
+ EVOLUTION_DATADIR "/evolution/views/mail/",
+ local_dir);
+ g_free (local_dir);
spec_string = message_list_get_layout(fb->message_list);
spec = e_table_specification_new();