aboutsummaryrefslogtreecommitdiffstats
path: root/src/Directory.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Directory.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Directory.cxx b/src/Directory.cxx
index 87585818e..28c2c47e1 100644
--- a/src/Directory.cxx
+++ b/src/Directory.cxx
@@ -53,7 +53,7 @@ Directory::~Directory()
Directory *child, *n;
directory_for_each_child_safe(child, n, *this)
- child->Free();
+ delete child;
}
void
@@ -63,7 +63,7 @@ Directory::Delete()
assert(parent != nullptr);
list_del(&siblings);
- Free();
+ delete this;
}
const char *