Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
+ fix memory leaks
  • Loading branch information
wwmayer committed Nov 13, 2015
1 parent 45af17e commit 48027e1
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Mod/Fem/Gui/ViewProviderFemConstraintForce.cpp
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/Mod/Fem/Gui/ViewProviderFemConstraintPressure.cpp
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/Mod/Fem/Gui/ViewProviderFemMesh.cpp
Expand Up @@ -232,6 +232,7 @@ ViewProviderFemMesh::~ViewProviderFemMesh()
pcMatBinding->unref();
pcPointMaterial->unref();
pcPointStyle->unref();
pcAnoCoords->unref();
}

void ViewProviderFemMesh::attach(App::DocumentObject *pcObj)
Expand Down

0 comments on commit 48027e1

Please sign in to comment.