]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 12:53:48 +0000 (12:53 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 12:53:48 +0000 (12:53 +0000)
void SVTK_InteractorStyle::RotateXY(int dx, int dy)
{

+  aTransform->Delete();

src/SVTK/SVTK_InteractorStyle.cxx

index e7026d8c63f7ac04f1ef9fa44c21609498ad653c..40b784cf91a44c77afaa34728ff37a432215591a 100644 (file)
@@ -261,6 +261,7 @@ void SVTK_InteractorStyle::RotateXY(int dx, int dy)
   // To apply the transformation
   cam->SetPosition(aTransform->TransformPoint(viewPos));
   cam->SetFocalPoint(aTransform->TransformPoint(viewFP));
+  aTransform->Delete();
 
   cam->OrthogonalizeViewUp();