From 3062dc41e7f21e07057da1e1cc9d5db713e4aa1a Mon Sep 17 00:00:00 2001 From: srn Date: Thu, 7 Apr 2005 05:41:05 +0000 Subject: [PATCH] Added release of _driver and _orb in the destructor of the SALOMEDS_Driver_i --- src/SALOMEDS/SALOMEDS_Driver_i.cxx | 6 ++++++ src/SALOMEDS/SALOMEDS_Driver_i.hxx | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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() { -- 2.39.2