Commit 0d6a426f authored by Jan Möbius's avatar Jan Möbius

Memory leak in Assignment patch (Thanks to

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@219 fdac6126-5c0c-442c-9429-916003d36597
parent 55dfbc93
......@@ -81,7 +81,8 @@ public:
PropertyContainer& operator=(const PropertyContainer& _rhs)
{
clear();
// The assignment below relies on all previous BaseProperty* elements having been deleted
std::for_each(properties_.begin(), properties_.end(), Delete());
properties_ = _rhs.properties_;
Properties::iterator p_it=properties_.begin(), p_end=properties_.end();
for (; p_it!=p_end; ++p_it)
......
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