From 2e84df43a6b408028657ea6aa5084572a688d485 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 17 Sep 2012 03:28:41 -0400 Subject: added missing cleanup calls to deconstructor and disconnect all --- lib/hier_block.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/hier_block.cpp') 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(); } -- cgit