mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-25 00:40:33 +05:00
Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python
Deactivate CORBA object in destructor
This commit is contained in:
parent
7ba6caead5
commit
7384d881f7
@ -458,6 +458,10 @@ SMESH_MeshEditor_i::SMESH_MeshEditor_i(SMESH_Mesh_i* theMesh, bool isPreview):
|
||||
|
||||
SMESH_MeshEditor_i::~SMESH_MeshEditor_i()
|
||||
{
|
||||
PortableServer::POA_var poa = SMESH_Gen_i::GetPOA();
|
||||
PortableServer::ObjectId_var anObjectId = poa->servant_to_id(this);
|
||||
poa->deactivate_object(anObjectId.in());
|
||||
|
||||
//deleteAuxIDSources();
|
||||
delete myPreviewMesh; myPreviewMesh = 0;
|
||||
delete myPreviewEditor; myPreviewEditor = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user