summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hier_block.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hier_block.cpp b/lib/hier_block.cpp
index 24ae746..e4918ef 100644
--- a/lib/hier_block.cpp
+++ b/lib/hier_block.cpp
@@ -34,6 +34,7 @@ HierBlock::HierBlock(const std::string &name):
void ElementImpl::hier_block_cleanup(void)
{
+ this->topology.clear_all();
this->children.clear();
}
@@ -83,4 +84,5 @@ void HierBlock::disconnect(
void HierBlock::disconnect_all(void)
{
(*this)->topology.clear_all();
+ (*this)->children.clear();
}