Memory leak in Assignment patch (Thanks to
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@219 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user