+ fix memory leaks

This commit is contained in:
wmayer
2015-11-13 16:06:43 +01:00
parent 1e1fc10748
commit 2a2b40e50e
3 changed files with 1 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -232,6 +232,7 @@ ViewProviderFemMesh::~ViewProviderFemMesh()
pcMatBinding->unref();
pcPointMaterial->unref();
pcPointStyle->unref();
pcAnoCoords->unref();
}
void ViewProviderFemMesh::attach(App::DocumentObject *pcObj)