summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Persistent_ID/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/Persistent_ID/server.cpp')
-rw-r--r--TAO/tests/POA/Persistent_ID/server.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/TAO/tests/POA/Persistent_ID/server.cpp b/TAO/tests/POA/Persistent_ID/server.cpp
index a39d1917712..dffcbf892da 100644
--- a/TAO/tests/POA/Persistent_ID/server.cpp
+++ b/TAO/tests/POA/Persistent_ID/server.cpp
@@ -131,6 +131,15 @@ test_i::create_POA (ACE_ENV_SINGLE_ARG_DECL)
ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (test::_nil ());
+ // Destroy the policies
+ for (CORBA::ULong i = 0;
+ i < policies.length ();
+ ++i)
+ {
+ policies[i]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER);
+ ACE_CHECK;
+ }
+
test_i *servant =
new test_i (this->orb_.in (),
this->child_poa_.in ());