From 90b418b84ab965fd534f83b2e095864072a8f115 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Thu, 16 Nov 2000 07:14:53 +0000 Subject: ChangeLogTag:Wed Nov 15 21:52:10 2000 Ossama Othman --- TAO/tao/ORB_Table.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'TAO') diff --git a/TAO/tao/ORB_Table.cpp b/TAO/tao/ORB_Table.cpp index e927a9336fe..64c81328e73 100644 --- a/TAO/tao/ORB_Table.cpp +++ b/TAO/tao/ORB_Table.cpp @@ -31,6 +31,7 @@ TAO_ORB_Table::~TAO_ORB_Table (void) // Destroy the ORB_Core (*i).int_id_->_decr_refcnt (); } + this->table_.close (); } @@ -58,9 +59,9 @@ TAO_ORB_Table::bind (const char *orb_id, return -1; }; - const char *id = CORBA::string_dup (orb_id); + CORBA::String_var id = CORBA::string_dup (orb_id); - int result = this->table_.bind (id, orb_core); + int result = this->table_.bind (id.in (), orb_core); if (result == 0) { // The ORB table now owns the ORB Core. As such, the reference @@ -70,6 +71,8 @@ TAO_ORB_Table::bind (const char *orb_id, // successfully added to the ORB table. if (this->first_orb_ == 0) this->first_orb_ = orb_core; + + (void) id._retn (); // ORB Table now owns the id. } return result; -- cgit v1.2.1