summaryrefslogtreecommitdiff
path: root/TAO/tao/ORB.cpp
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-01 20:47:23 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-07-01 20:47:23 +0000
commitb2027272a0c5be2b8071df895f61280ecdaf2a1f (patch)
tree0fe325ac9a40c5623d8863a07d843acb89390f8d /TAO/tao/ORB.cpp
parent5aedb9c9ccc0f2f16dd4e48115eb939408e0ff2f (diff)
downloadATCD-b2027272a0c5be2b8071df895f61280ecdaf2a1f.tar.gz
ChangeLog entry: Wed Jul 1 15:50:00 1998 Michael Kircher <mk1@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/ORB.cpp')
-rw-r--r--TAO/tao/ORB.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp
index edacbf157cf..3eec79087d9 100644
--- a/TAO/tao/ORB.cpp
+++ b/TAO/tao/ORB.cpp
@@ -112,6 +112,15 @@ CORBA_ORB::~CORBA_ORB (void)
delete this->shutdown_lock_;
this->shutdown_lock_ = 0;
}
+
+ if (!CORBA::is_nil (this->name_service_))
+ CORBA::release (this->name_service_);
+ if (!CORBA::is_nil (this->schedule_service_))
+ CORBA::release (this->schedule_service_);
+ if (!CORBA::is_nil (this->event_service_))
+ CORBA::release (this->event_service_);
+ if (!CORBA::is_nil (this->trading_service_))
+ CORBA::release (this->trading_service_);
}
// Set up listening endpoints.
@@ -363,8 +372,6 @@ CORBA_ORB::resolve_name_service (void)
if (env.exception () != 0)
this->name_service_ = CORBA_Object::_nil ();
- // Return ior.
- return_value = this->name_service_;
}
else
{
@@ -383,10 +390,12 @@ CORBA_ORB::resolve_name_service (void)
port = TAO_DEFAULT_NAME_SERVER_REQUEST_PORT;
}
- return_value =
+ this->name_service_ =
this->multicast_to_service (TAO_SERVICEID_NAMESERVICE, port);
}
+ // Return ior.
+ return_value = this->name_service_;
return CORBA_Object::_duplicate (return_value);
}
@@ -419,9 +428,6 @@ CORBA_ORB::resolve_trading_service (void)
// check for errors
if (env.exception () != 0)
this->trading_service_ = CORBA_Object::_nil ();
-
- // Return ior.
- return_value = this->trading_service_;
}
else
{
@@ -440,11 +446,12 @@ CORBA_ORB::resolve_trading_service (void)
port = TAO_DEFAULT_TRADING_SERVER_REQUEST_PORT;
}
- return_value =
+ this->trading_service_ =
this->multicast_to_service (TAO_SERVICEID_TRADINGSERVICE, port);
}
}
+ return_value = this->trading_service_;
return CORBA_Object::_duplicate (return_value);
}