summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Pluggable/PP_Test_Server.cpp')
-rw-r--r--TAO/performance-tests/Pluggable/PP_Test_Server.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
index 84c09c6b6a1..5b1f147ca0e 100644
--- a/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
+++ b/TAO/performance-tests/Pluggable/PP_Test_Server.cpp
@@ -72,7 +72,7 @@ PP_Test_Server::init (int argc,
// Now create the implementations
this->factory_impl_ = new Pluggable_Test_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 @@ PP_Test_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 @@ PP_Test_Server::run (CORBA::Environment& ACE_TRY_ENV)
PP_Test_Server::~PP_Test_Server (void)
{
- if (this->factory_id_.in ())
- this->orb_manager_.deactivate_under_child_poa (this->factory_id_.in ());
-
delete this->factory_impl_;
}