Commit 520c1ab5 authored by Sylvain Thery's avatar Sylvain Thery

bug: crash when Map delete before AutoAttributeHandler RESOLVED

parent 29f14458
......@@ -61,7 +61,8 @@ public:
~AutoAttributeHandler()
{
reinterpret_cast<AttribMap*>(this->m_map)->removeAttribute<T>(*this) ;
if (this->valid)
reinterpret_cast<AttribMap*>(this->m_map)->removeAttribute<T>(*this) ;
}
} ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment