From: srn Date: Thu, 7 Apr 2005 05:41:05 +0000 (+0000) Subject: Added release of _driver and _orb in the destructor of the SALOMEDS_Driver_i X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3062dc41e7f21e07057da1e1cc9d5db713e4aa1a;p=modules%2Fkernel.git Added release of _driver and _orb in the destructor of the SALOMEDS_Driver_i --- diff --git a/src/SALOMEDS/SALOMEDS_Driver_i.cxx b/src/SALOMEDS/SALOMEDS_Driver_i.cxx index 01c549371..0c9202c94 100644 --- a/src/SALOMEDS/SALOMEDS_Driver_i.cxx +++ b/src/SALOMEDS/SALOMEDS_Driver_i.cxx @@ -8,6 +8,12 @@ using namespace std; #include "SALOMEDS.hxx" #include +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, diff --git a/src/SALOMEDS/SALOMEDS_Driver_i.hxx b/src/SALOMEDS/SALOMEDS_Driver_i.hxx index 06af857ca..efda71f22 100644 --- a/src/SALOMEDS/SALOMEDS_Driver_i.hxx +++ b/src/SALOMEDS/SALOMEDS_Driver_i.hxx @@ -25,8 +25,7 @@ public: _orb = CORBA::ORB::_duplicate(theORB); } - ~SALOMEDS_Driver_i() { - } + ~SALOMEDS_Driver_i(); virtual TCollection_AsciiString GetIOR() {