aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@ximian.com>2001-03-16 12:39:35 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2001-03-16 12:39:35 +0800
commit323a1f08cc0bdff8bba6ec1631f6e7111296093e (patch)
tree13fb0596d51c65b62ba7e8f42d51a14b92db28c8 /mail
parent01b977304f0b67ace59a310b4849cede5dce202c (diff)
downloadgsoc2013-evolution-323a1f08cc0bdff8bba6ec1631f6e7111296093e.tar.gz
gsoc2013-evolution-323a1f08cc0bdff8bba6ec1631f6e7111296093e.tar.zst
gsoc2013-evolution-323a1f08cc0bdff8bba6ec1631f6e7111296093e.zip
Fix memory leak.
2001-03-15 Miguel de Icaza <miguel@ximian.com> * folder-browser-factory.c (folder_browser_setup_view_menus): Fix memory leak. svn path=/trunk/; revision=8752
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();