summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/DirectorySave.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx
index 15f5f04c0..fa330d126 100644
--- a/src/DirectorySave.cxx
+++ b/src/DirectorySave.cxx
@@ -52,10 +52,7 @@ directory_save(FILE *fp, const Directory &directory)
Directory *cur;
directory_for_each_child(cur, directory) {
- char *base = g_path_get_basename(cur->path);
-
- fprintf(fp, DIRECTORY_DIR "%s\n", base);
- g_free(base);
+ fprintf(fp, DIRECTORY_DIR "%s\n", cur->GetName());
directory_save(fp, *cur);