]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 13:42:25 +0000 (13:42 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 13:42:25 +0000 (13:42 +0000)
  Fix a leak of GEOM_IGroupOperations_i servant

src/PluginUtils/GeomSelectionTools.cxx

index 07c7f0830a68a915f99f32231d0b6d66b87049c0..2f495237cff09c30f784c020e4426154583a2e1a 100644 (file)
@@ -33,6 +33,7 @@
 #include <SMESHGUI_Utils.h>
 #include <boost/shared_ptr.hpp>
 #include <GEOMImpl_Types.hxx>
+#include <GEOM_GenericObjPtr.h>
 
 #include <TopoDS.hxx>
 #include <BRep_Tool.hxx>
@@ -225,7 +226,8 @@ TopAbs_ShapeEnum GeomSelectionTools::entryToShapeType(std::string entry){
         // if the Geom Object is a group
         if (aShape->GetType() == GEOM_GROUP){
 //           MESSAGE("It's a group");
-          GEOM::GEOM_IGroupOperations_var aGroupOp = _geomEngine->GetIGroupOperations(myStudy->StudyId());
+          GEOM::GEOM_IGroupOperations_wrap aGroupOp =
+            _geomEngine->GetIGroupOperations(myStudy->StudyId());
           ShapeType= (TopAbs_ShapeEnum)aGroupOp->GetType(aShape);
         }
         // if not