diff options
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 12 |
1 files changed, 8 insertions, 4 deletions
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(); |