summaryrefslogtreecommitdiff
path: root/TAO/tao/SHMIOP_Acceptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/SHMIOP_Acceptor.cpp')
-rw-r--r--TAO/tao/SHMIOP_Acceptor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/TAO/tao/SHMIOP_Acceptor.cpp b/TAO/tao/SHMIOP_Acceptor.cpp
index 7fc649bb91a..85253d50173 100644
--- a/TAO/tao/SHMIOP_Acceptor.cpp
+++ b/TAO/tao/SHMIOP_Acceptor.cpp
@@ -59,6 +59,10 @@ TAO_SHMIOP_Acceptor::TAO_SHMIOP_Acceptor (CORBA::Boolean flag)
TAO_SHMIOP_Acceptor::~TAO_SHMIOP_Acceptor (void)
{
+ // Make sure we are closed before we start destroying the
+ // strategies.
+ this->close ();
+
delete this->creation_strategy_;
delete this->concurrency_strategy_;
delete this->accept_strategy_;