summaryrefslogtreecommitdiff
path: root/ace/Naming_Context.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-05 02:55:35 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-05 02:55:35 +0000
commitdefc23612abb831c30b72eab617fccd425fd8552 (patch)
tree99841198f1d4b9a48f436e104e440c688a16c323 /ace/Naming_Context.cpp
parent01d0cbb5a5f84652f82cf85481a9a31f6becd4ae (diff)
downloadATCD-defc23612abb831c30b72eab617fccd425fd8552.tar.gz
(close) moved deletion of name_options_ from dtor to close (), because when Service_Repository is closed, it calls close () instead of deleting the service
Diffstat (limited to 'ace/Naming_Context.cpp')
-rw-r--r--ace/Naming_Context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp
index 7e0b1534076..d47a8ee7aab 100644
--- a/ace/Naming_Context.cpp
+++ b/ace/Naming_Context.cpp
@@ -101,6 +101,9 @@ ACE_Naming_Context::close (void)
{
ACE_TRACE ("ACE_Naming_Context::close");
+ delete this->name_options_;
+ this->name_options_ = 0;
+
delete this->name_space_;
this->name_space_ = 0;
@@ -324,9 +327,6 @@ ACE_Naming_Context::~ACE_Naming_Context (void)
ACE_TRACE ("ACE_Naming_Context::~ACE_Naming_Context");
this->close ();
-
- delete this->name_options_;
- this->name_options_ = 0;
}
void