]> SALOME platform Git repositories - modules/gui.git/commit
Salome HOME
21948: EDF SMESH : Memory is not freed when deleting a mesh
authoreap <eap@opencascade.com>
Fri, 14 Dec 2012 12:55:05 +0000 (12:55 +0000)
committereap <eap@opencascade.com>
Fri, 14 Dec 2012 12:55:05 +0000 (12:55 +0000)
commit790d5948fbf53affbaf3752d70061c4cb9a83a8b
treed9b06cc17da77417aca16e83fcc6143444e5a255
parent7418b604a6b2eee57262203780c9992c33665c10
21948: EDF SMESH : Memory is not freed when deleting a mesh

-  Observer_i(_PTR(Study) aStudyDS, SalomeApp_Study* aStudy)
+  Observer_i(_PTR(Study) aStudyDS, SalomeApp_Study* aStudy):QObject(aStudy)
   {

 SalomeApp_Study::~SalomeApp_Study()
 {
+  if ( myObserver ) {
+    PortableServer::ObjectId_var oid = myObserver->_default_POA()->servant_to_id( myObserver );
+    myObserver->_default_POA()->deactivate_object( oid.in() );
+  }
}
src/SalomeApp/SalomeApp_Study.cxx