mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 11:15:37 +05:00
21948: EDF SMESH : Memory is not freed when deleting a mesh
Fix a leak of GEOM_IGroupOperations_i servant
This commit is contained in:
parent
d0a6c1f78d
commit
91312a2db5
@ -33,6 +33,7 @@
|
|||||||
#include <SMESHGUI_Utils.h>
|
#include <SMESHGUI_Utils.h>
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
#include <GEOMImpl_Types.hxx>
|
#include <GEOMImpl_Types.hxx>
|
||||||
|
#include <GEOM_GenericObjPtr.h>
|
||||||
|
|
||||||
#include <TopoDS.hxx>
|
#include <TopoDS.hxx>
|
||||||
#include <BRep_Tool.hxx>
|
#include <BRep_Tool.hxx>
|
||||||
@ -225,7 +226,8 @@ TopAbs_ShapeEnum GeomSelectionTools::entryToShapeType(std::string entry){
|
|||||||
// if the Geom Object is a group
|
// if the Geom Object is a group
|
||||||
if (aShape->GetType() == GEOM_GROUP){
|
if (aShape->GetType() == GEOM_GROUP){
|
||||||
// MESSAGE("It's a 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);
|
ShapeType= (TopAbs_ShapeEnum)aGroupOp->GetType(aShape);
|
||||||
}
|
}
|
||||||
// if not
|
// if not
|
||||||
|
Loading…
Reference in New Issue
Block a user