diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-11-16 07:14:53 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2000-11-16 07:14:53 +0000 |
commit | 90b418b84ab965fd534f83b2e095864072a8f115 (patch) | |
tree | a3d3656e532fa9923379c5d2dc62f10a67670dc9 /TAO | |
parent | a11f560f8dcee4550e5ffc894b7f29292143fd3b (diff) | |
download | ATCD-90b418b84ab965fd534f83b2e095864072a8f115.tar.gz |
ChangeLogTag:Wed Nov 15 21:52:10 2000 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'TAO')
-rw-r--r-- | TAO/tao/ORB_Table.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; |