TD: fix memory leaks with raw pointers of GeometryObject

Replacing the use of raw pointers of GeometryObject with shared pointers fixes the observed memory leaks when running the unit tests of TechDraw
This commit is contained in:
wmayer
2022-11-15 11:09:12 +01:00
committed by WandererFan
parent a9283c9945
commit 9e9c784041
6 changed files with 22 additions and 23 deletions

View File

@@ -25,6 +25,7 @@
#include <Mod/TechDraw/TechDrawGlobal.h>
#include <memory>
#include <string>
#include <vector>
@@ -222,6 +223,8 @@ protected:
bool m_usePolygonHLR;
};
using GeometryObjectPtr = std::shared_ptr<GeometryObject>;
} //namespace TechDraw
#endif