From 323a1f08cc0bdff8bba6ec1631f6e7111296093e Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 16 Mar 2001 04:39:35 +0000 Subject: Fix memory leak. 2001-03-15 Miguel de Icaza * folder-browser-factory.c (folder_browser_setup_view_menus): Fix memory leak. svn path=/trunk/; revision=8752 --- mail/ChangeLog | 5 +++++ mail/folder-browser-factory.c | 12 ++++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'mail') 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 + + * folder-browser-factory.c (folder_browser_setup_view_menus): Fix + memory leak. + 2001-03-15 Jeffrey Stedfast * 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(); -- cgit v1.2.3