diff options
Diffstat (limited to 'ace/DLL.cpp')
-rw-r--r-- | ace/DLL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/DLL.cpp b/ace/DLL.cpp index 3457c53e897..b702b548be6 100644 --- a/ace/DLL.cpp +++ b/ace/DLL.cpp @@ -37,7 +37,7 @@ ACE_DLL::ACE_DLL (ACE_DL_TYPE dll_name, ACE_DLL::~ACE_DLL (void) { // CLose the library only if it hasn't been already. - if (this->close_on_destruction_ == 1 + if (this->close_on_destruction_ == 1 && this->handle_ != ACE_SHLIB_INVALID_HANDLE) this->close (); } |