diff options
author | Josh Blum | 2012-08-31 23:46:37 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-31 23:46:37 -0700 |
commit | 0a988ab506d3489e13222e9c7ddff889c6371ee6 (patch) | |
tree | a67d1a57a37a54bc1a471d1db58cdac3c79841b3 /lib/element.cpp | |
parent | f5284acf1321558e9409c9cae60045c14d5a52dd (diff) | |
download | sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.tar.gz sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.tar.bz2 sandhi-0a988ab506d3489e13222e9c7ddff889c6371ee6.zip |
added comments and some cleanup code
Diffstat (limited to 'lib/element.cpp')
-rw-r--r-- | lib/element.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp index e0269e7..addc04d 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -40,6 +40,12 @@ Element::Element(const std::string &name) this->set_output_signature(sig); } +ElementImpl::~ElementImpl(void) +{ + if (this->executor) this->top_block_cleanup(); + if (this->topology) this->hier_block_cleanup(); +} + long Element::unique_id(void) const { return (*this)->unique_id; |