Geometry extensions: remove unnecessary smart pointer deletion

==============================================================

When the geometry object is destroyed, std::vector's destructor is called, which in turn calls the destructor of the smart pointers.

If a weak_ptr corresponding to one of those shared_ptr is locked (elsewhere, if FC were multithread),
the underlaying resource will not be freed until said locked weak_ptr goes out of scope. It will then.
This commit is contained in:
Abdullah Tahiri
2019-02-09 19:35:40 +01:00
committed by wmayer
parent 0c1df38a4b
commit e4aead2365

View File

@@ -192,8 +192,7 @@ Geometry::Geometry()
Geometry::~Geometry()
{
for(std::vector<std::shared_ptr<GeometryExtension>>::iterator it = extensions.begin(); it != extensions.end(); it++)
(*it).reset();
}
// Persistence implementer