From: eap Date: Thu, 19 Sep 2013 12:40:41 +0000 (+0000) Subject: Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python X-Git-Tag: V7_3_0a1~147 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7384d881f761cec945da627d5d3705011df5ddf8;p=modules%2Fsmesh.git Fix omniORB::fatalException at SALOME termination after creating a Mesh in Python Deactivate CORBA object in destructor --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 3edcb167d..7a89a00cf 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -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;