diff options
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp')
-rw-r--r-- | TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp index 180d44c13b5..79172cf9b2b 100644 --- a/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp +++ b/TAO/performance-tests/Cubit/TAO/IDL_Cubit/Cubit_Server.cpp @@ -72,7 +72,7 @@ Cubit_Server::init (int argc, // Now create the implementations this->factory_impl_ = new Cubit_Factory_i (orb.in ()); - this->factory_id_ = + CORBA::String_var str = this->orb_manager_.activate_under_child_poa ("factory", this->factory_impl_, ACE_TRY_ENV); @@ -80,13 +80,13 @@ Cubit_Server::init (int argc, ACE_DEBUG ((LM_DEBUG, "The IOR is: <%s>\n", - this->factory_id_.in ())); + str.in ())); if (this->ior_output_file_) { ACE_OS::fprintf (this->ior_output_file_, "%s", - this->factory_id_.in ()); + str.in ()); ACE_OS::fclose (this->ior_output_file_); } @@ -105,8 +105,5 @@ Cubit_Server::run (CORBA::Environment& env) Cubit_Server::~Cubit_Server (void) { - if (this->factory_id_.in ()) - this->orb_manager_.deactivate_under_child_poa (this->factory_id_.in ()); - delete this->factory_impl_; } |