diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp index e06ae0240..3fd782d06 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.cpp @@ -246,11 +246,9 @@ void getLocalCoordinateSystem(const SbVec3f& z, SbVec3f& y, SbVec3f& x) void ViewProviderFemConstraint::createPlacement(SoSeparator* sep, const SbVec3f &base, const SbRotation &r) { SoTranslation* trans = new SoTranslation(); - trans->ref(); trans->translation.setValue(base); sep->addChild(trans); SoRotation* rot = new SoRotation(); - rot->ref(); rot->rotation.setValue(r); sep->addChild(rot); } @@ -269,11 +267,9 @@ void ViewProviderFemConstraint::createCone(SoSeparator* sep, const double height { // Adjust cone so that the tip is on base SoTranslation* trans = new SoTranslation(); - trans->ref(); trans->translation.setValue(SbVec3f(0,-height/2,0)); sep->addChild(trans); SoCone* cone = new SoCone(); - cone->ref(); cone->height.setValue(height); cone->bottomRadius.setValue(radius); sep->addChild(cone); @@ -302,7 +298,6 @@ void ViewProviderFemConstraint::updateCone(const SoNode* node, const int idx, co void ViewProviderFemConstraint::createCylinder(SoSeparator* sep, const double height, const double radius) { SoCylinder* cyl = new SoCylinder(); - cyl->ref(); cyl->height.setValue(height); cyl->radius.setValue(radius); sep->addChild(cyl); @@ -329,7 +324,6 @@ void ViewProviderFemConstraint::updateCylinder(const SoNode* node, const int idx void ViewProviderFemConstraint::createCube(SoSeparator* sep, const double width, const double length, const double height) { SoCube* cube = new SoCube(); - cube->ref(); cube->width.setValue(width); cube->depth.setValue(length); cube->height.setValue(height);