]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Added release of _driver and _orb in the destructor of the SALOMEDS_Driver_i
authorsrn <srn@opencascade.com>
Thu, 7 Apr 2005 05:41:05 +0000 (05:41 +0000)
committersrn <srn@opencascade.com>
Thu, 7 Apr 2005 05:41:05 +0000 (05:41 +0000)
src/SALOMEDS/SALOMEDS_Driver_i.cxx
src/SALOMEDS/SALOMEDS_Driver_i.hxx

index 01c549371694c9ab68613316c059796b656364b1..0c9202c94993f782503a58f43dcc31b69288e3b4 100644 (file)
@@ -8,6 +8,12 @@ using namespace std;
 #include "SALOMEDS.hxx"
 #include <stdlib.h>
 
+SALOMEDS_Driver_i::~SALOMEDS_Driver_i()
+{
+  CORBA::release(_driver);
+  CORBA::release(_orb); 
+}
+
 unsigned char* SALOMEDS_Driver_i::Save(const Handle(SALOMEDSImpl_SComponent)& theComponent,
                                       const TCollection_AsciiString& theURL,
                                       long& theStreamLength,
index 06af857ca98a7784c91dc3a3d8b7ec142f50c822..efda71f220803759337f78ca3b5194c5e2cce467 100644 (file)
@@ -25,8 +25,7 @@ public:
       _orb = CORBA::ORB::_duplicate(theORB);        
     }
 
-  ~SALOMEDS_Driver_i() {
-  }
+  ~SALOMEDS_Driver_i();
 
   virtual TCollection_AsciiString GetIOR() 
     {