]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22261: EDF 2698 SMESH: Memory leak when displaying 2D quadratic elements as arcs
authoreap <eap@opencascade.com>
Wed, 24 Jul 2013 12:42:22 +0000 (12:42 +0000)
committereap <eap@opencascade.com>
Wed, 24 Jul 2013 12:42:22 +0000 (12:42 +0000)
+  delete aHistogram;

src/SMESHGUI/SMESHGUI_MeshInfo.cxx

index 9a701b8ec8f8c87088c371031ab3c2c2688ccda7..e17221fffca5b8c1a70e89dd51bc2d9ba3ff4ac3 100644 (file)
@@ -3401,6 +3401,7 @@ void SMESHGUI_CtrlInfo::computeAspectRatio()
     anItem->attach( myPlot );
     myPlot->replot();
   }
+  delete aHistogram;
 }
 
 void SMESHGUI_CtrlInfo::computeAspectRatio3D()
@@ -3417,6 +3418,7 @@ void SMESHGUI_CtrlInfo::computeAspectRatio3D()
     anItem->attach( myPlot3D );
     myPlot3D->replot();
   }
+  delete aHistogram;
 }
 
 /*!