aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-local-storage.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-05-04 23:56:34 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-05-04 23:56:34 +0800
commitb8fea86c9d93332692219c8a1ca39efe262658af (patch)
treed2f1ad2d37af287e93e8ec68dd85b53a5fa92bc8 /shell/e-local-storage.c
parent562717e70a312939a8c9e828f587cb2f1e4a3b24 (diff)
downloadgsoc2013-evolution-b8fea86c9d93332692219c8a1ca39efe262658af.tar.gz
gsoc2013-evolution-b8fea86c9d93332692219c8a1ca39efe262658af.tar.zst
gsoc2013-evolution-b8fea86c9d93332692219c8a1ca39efe262658af.zip
Plug more leaks.
svn path=/trunk/; revision=9671
Diffstat (limited to 'shell/e-local-storage.c')
-rw-r--r--shell/e-local-storage.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c
index 3a2960b4e9..d0d433abc0 100644
--- a/shell/e-local-storage.c
+++ b/shell/e-local-storage.c
@@ -426,7 +426,6 @@ create_folder_directory (ELocalStorage *local_storage,
ELocalStoragePrivate *priv;
const char *folder_name;
char *physical_path;
- char *parent_path;
storage = E_STORAGE (local_storage);
priv = local_storage->priv;
@@ -440,15 +439,17 @@ create_folder_directory (ELocalStorage *local_storage,
/* We want a direct child of the root, so we don't need to create a
`subfolders' directory. */
physical_path = get_physical_path (local_storage, path);
- parent_path = g_strdup (G_DIR_SEPARATOR_S);
} else {
char *parent_physical_path;
char *subfolders_directory_physical_path;
+ char *parent_path;
/* Create the `subfolders' subdirectory under the parent. */
parent_path = g_strndup (path, folder_name - path - 1);
parent_physical_path = get_physical_path (local_storage, parent_path);
+ g_free (parent_path);
+
subfolders_directory_physical_path = g_concat_dir_and_file (parent_physical_path,
SUBFOLDER_DIR_NAME);