From: eap Date: Fri, 14 Dec 2012 13:42:25 +0000 (+0000) Subject: 21948: EDF SMESH : Memory is not freed when deleting a mesh X-Git-Tag: pluginMGCleaner~248 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=91312a2db5054751aa1d49c80a427ecf5de2ab12;p=modules%2Fsmesh.git 21948: EDF SMESH : Memory is not freed when deleting a mesh Fix a leak of GEOM_IGroupOperations_i servant --- diff --git a/src/PluginUtils/GeomSelectionTools.cxx b/src/PluginUtils/GeomSelectionTools.cxx index 07c7f0830..2f495237c 100644 --- a/src/PluginUtils/GeomSelectionTools.cxx +++ b/src/PluginUtils/GeomSelectionTools.cxx @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -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