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

Memory leak in Assignment patch (Thanks to

git-svn-id: fdac6126-5c0c-442c-9429-916003d36597
parent 55dfbc93
......@@ -81,7 +81,8 @@ public:
PropertyContainer& operator=(const PropertyContainer& _rhs)
// 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)
Supports Markdown
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