PVS: V773 A memory leak is possible

This commit is contained in:
wmayer
2019-02-17 18:40:06 +01:00
parent b2a5f47e44
commit e23db2e313
22 changed files with 74 additions and 69 deletions

View File

@@ -241,9 +241,9 @@ void ViewProviderPartReference::attach(App::DocumentObject *pcFeat)
ViewProviderGeometryObject::attach(pcFeat);
SoGroup* pcNormalRoot = new SoGroup();
SoGroup* pcFlatRoot = new SoGroup();
SoGroup* pcWireframeRoot = new SoGroup();
SoGroup* pcPointsRoot = new SoGroup();
//SoGroup* pcFlatRoot = new SoGroup();
//SoGroup* pcWireframeRoot = new SoGroup();
//SoGroup* pcPointsRoot = new SoGroup();
// enable two-side rendering
pShapeHints->vertexOrdering = SoShapeHints::COUNTERCLOCKWISE;
@@ -256,15 +256,15 @@ void ViewProviderPartReference::attach(App::DocumentObject *pcFeat)
pcNormalRoot->addChild(VertexRoot);
// just faces with no edges or points
pcFlatRoot->addChild(pShapeHints);
pcFlatRoot->addChild(FaceRoot);
//pcFlatRoot->addChild(pShapeHints);
//pcFlatRoot->addChild(FaceRoot);
// only edges
pcWireframeRoot->addChild(EdgeRoot);
pcWireframeRoot->addChild(VertexRoot);
//pcWireframeRoot->addChild(EdgeRoot);
//pcWireframeRoot->addChild(VertexRoot);
// normal viewing with edges and points
pcPointsRoot->addChild(VertexRoot);
//pcPointsRoot->addChild(VertexRoot);
// putting all together with the switch
addDisplayMaskMode(pcNormalRoot, "Reference");