summaryrefslogtreecommitdiff
path: root/ace/Svc_Handler.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-03-11 01:33:47 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-03-11 01:33:47 +0000
commit9561ccc9b4a10d6f9a06650cad98057bd0fdee16 (patch)
treea02fc4d47216d6b8a9c0eb204fd3eade58b9fc3b /ace/Svc_Handler.cpp
parentb4434ce8667c30f62cff816ba687d1e5bae7fa95 (diff)
downloadATCD-9561ccc9b4a10d6f9a06650cad98057bd0fdee16.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Svc_Handler.cpp')
-rw-r--r--ace/Svc_Handler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ace/Svc_Handler.cpp b/ace/Svc_Handler.cpp
index f461b9081bc..b5d7621b461 100644
--- a/ace/Svc_Handler.cpp
+++ b/ace/Svc_Handler.cpp
@@ -31,8 +31,9 @@ ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::destroy (void)
{
ACE_TRACE ("ACE_Svc_Handler<PR_ST_2, ACE_SYNCH_USE>::destroy");
- // Only delete ourselves if we've been allocated dynamically.
- if (this->dynamic_ && this->closing_ == 0)
+ // Only delete ourselves if we're not owned by a module and have
+ // been allocated dynamically.
+ if (this->mod_ == 0 && this->dynamic_ && this->closing_ == 0)
// Will call the destructor, which automatically calls <shutdown>.
// Note that if we are *not* allocated dynamically then the
// destructor will call <shutdown> automatically when it gets run