diff options
author | Josh Blum | 2012-11-03 13:02:44 -0700 |
---|---|---|
committer | Josh Blum | 2012-11-03 13:02:44 -0700 |
commit | 69a0c4fb988181de3ea8caef71b480f794882c0f (patch) | |
tree | f3d9f202ca7b49886167a7a708dfffc845488747 /lib/element.cpp | |
parent | dd3382aa8fa8d4b6d1de46621bbec189dd7e8965 (diff) | |
download | sandhi-69a0c4fb988181de3ea8caef71b480f794882c0f.tar.gz sandhi-69a0c4fb988181de3ea8caef71b480f794882c0f.tar.bz2 sandhi-69a0c4fb988181de3ea8caef71b480f794882c0f.zip |
python hier/top block holds refs of connected blocks
Diffstat (limited to 'lib/element.cpp')
-rw-r--r-- | lib/element.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/element.cpp b/lib/element.cpp index 6d116e9..83466c2 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -52,8 +52,12 @@ ElementImpl::~ElementImpl(void) Element &Element::shared_to_element(void) { - this->weak_self = this->shared_from_this(); - return *this; + try + { + this->weak_self = this->shared_from_this(); + } + catch(...){} + return this->derived_to_element(); } long Element::unique_id(void) const |