diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-30 03:31:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-30 03:31:34 +0000 |
commit | b7e95fd00638f1c24df75a3bf01ec69d1495f694 (patch) | |
tree | a43640f3047696366d9f0d35ac8337dfe91c9a9e /ace/Naming_Context.cpp | |
parent | 8e37b405491037e07bd520a5c18fc39e1fa253e7 (diff) | |
download | ATCD-b7e95fd00638f1c24df75a3bf01ec69d1495f694.tar.gz |
(close): added delete of this->name_options_; (dtor,fini): call this->close ()
Diffstat (limited to 'ace/Naming_Context.cpp')
-rw-r--r-- | ace/Naming_Context.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ace/Naming_Context.cpp b/ace/Naming_Context.cpp index 2a19ec5290d..34e8f93fba8 100644 --- a/ace/Naming_Context.cpp +++ b/ace/Naming_Context.cpp @@ -103,6 +103,8 @@ ACE_Naming_Context::close (void) delete this->name_space_; this->name_space_ = 0; + delete this->name_options_; + this->name_options_ = 0; return 0; } @@ -112,6 +114,7 @@ ACE_Naming_Context::ACE_Naming_Context (void) name_space_ (0) { ACE_TRACE ("ACE_Naming_Context::ACE_Naming_Context"); + ACE_NEW (this->name_options_, ACE_Name_Options); } @@ -321,8 +324,8 @@ ACE_Naming_Context::list_type_entries (ACE_BINDING_SET &set_out, ACE_Naming_Context::~ACE_Naming_Context (void) { ACE_TRACE ("ACE_Naming_Context::~ACE_Naming_Context"); - delete this->name_space_; - delete this->name_options_; + + this->close (); } void @@ -344,6 +347,9 @@ int ACE_Naming_Context::fini (void) { ACE_DEBUG ((LM_DEBUG, "ACE_Naming_Context::fini\n")); + + this->close (); + return 0; } |