summaryrefslogtreecommitdiff
path: root/TAO/tao/Adapter.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-25 05:03:43 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-10-25 05:03:43 +0000
commit8aac60492ba5b741d460a5eca2a707e605f71147 (patch)
treed1d36eeb49b9d0525b8b5d82bd725242957847ac /TAO/tao/Adapter.cpp
parent9d2ca5ae0acbfc3c44936859f1f67ace2b03ccab (diff)
downloadATCD-8aac60492ba5b741d460a5eca2a707e605f71147.tar.gz
ChangeLogTag: Tue Oct 24 23:40:33 2000 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/Adapter.cpp')
-rw-r--r--TAO/tao/Adapter.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/TAO/tao/Adapter.cpp b/TAO/tao/Adapter.cpp
index 396e50742c8..487ae4cee4f 100644
--- a/TAO/tao/Adapter.cpp
+++ b/TAO/tao/Adapter.cpp
@@ -31,8 +31,11 @@ TAO_Adapter_Registry::TAO_Adapter_Registry (TAO_ORB_Core *oc)
TAO_Adapter_Registry::~TAO_Adapter_Registry (void)
{
- // Deallocate adapter array in case the registry was not closed
- // properly.
+ for (size_t i = 0; i != this->adapters_count_; ++i)
+ {
+ delete this->adapters_[i];
+ }
+
delete[] this->adapters_;
}
@@ -45,10 +48,6 @@ TAO_Adapter_Registry::close (int wait_for_completion,
this->adapters_[i]->close (wait_for_completion, ACE_TRY_ENV);
ACE_CHECK;
}
- delete[] this->adapters_;
- this->adapters_ = 0;
- this->adapters_capacity_ = 0;
- this->adapters_count_ = 0;
}
void