+ fix memory leaks
This commit is contained in:
parent
45af17e39c
commit
48027e1586
|
@ -118,7 +118,6 @@ void ViewProviderFemConstraintForce::updateData(const App::Property* prop)
|
|||
if (pShapeSep->getNumChildren() == 0) {
|
||||
// Set up the nodes
|
||||
SoMultipleCopy* cp = new SoMultipleCopy();
|
||||
cp->ref();
|
||||
cp->matrix.setNum(0);
|
||||
cp->addChild((SoNode*)createArrow(ARROWLENGTH, ARROWHEADRADIUS));
|
||||
pShapeSep->addChild(cp);
|
||||
|
|
|
@ -100,7 +100,6 @@ void ViewProviderFemConstraintPressure::updateData(const App::Property* prop)
|
|||
if (pShapeSep->getNumChildren() == 0) {
|
||||
// Set up the nodes
|
||||
SoMultipleCopy* cp = new SoMultipleCopy();
|
||||
cp->ref();
|
||||
cp->matrix.setNum(0);
|
||||
cp->addChild((SoNode*)createArrow(ARROWLENGTH, ARROWHEADRADIUS));
|
||||
pShapeSep->addChild(cp);
|
||||
|
|
|
@ -232,6 +232,7 @@ ViewProviderFemMesh::~ViewProviderFemMesh()
|
|||
pcMatBinding->unref();
|
||||
pcPointMaterial->unref();
|
||||
pcPointStyle->unref();
|
||||
pcAnoCoords->unref();
|
||||
}
|
||||
|
||||
void ViewProviderFemMesh::attach(App::DocumentObject *pcObj)
|
||||
|
|
Loading…
Reference in New Issue
Block a user