From 3ee0a4c49eff58eabeb0aa25362c533e3e88d09e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 9 May 2000 14:41:31 +0000 Subject: Fix misplaced `g_free()' that resulted in garbage to be printed out in the case of an initialization failure. svn path=/trunk/; revision=2941 --- shell/e-shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell/e-shell.c') diff --git a/shell/e-shell.c b/shell/e-shell.c index f69606ab18..1223fc3e33 100644 --- a/shell/e-shell.c +++ b/shell/e-shell.c @@ -77,13 +77,15 @@ setup_storages (EShell *shell) local_storage_path = g_concat_dir_and_file (priv->local_directory, LOCAL_STORAGE_DIRECTORY); local_storage = e_local_storage_open (local_storage_path); - g_free (local_storage_path); if (local_storage == NULL) { g_warning (_("Cannot set up local storage -- %s"), local_storage_path); + g_free (local_storage_path); return FALSE; } + g_free (local_storage_path); + priv->storage_set = e_storage_set_new (); e_storage_set_add_storage (priv->storage_set, local_storage); -- cgit v1.2.3