summaryrefslogtreecommitdiff
path: root/ace/Service_Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Service_Object.cpp')
-rw-r--r--ace/Service_Object.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/ace/Service_Object.cpp b/ace/Service_Object.cpp
index 63decf4e9b3..52283e3bdcc 100644
--- a/ace/Service_Object.cpp
+++ b/ace/Service_Object.cpp
@@ -1,12 +1,14 @@
// $Id$
-#include "ace/Service_Types.h"
#include "ace/Service_Object.h"
#if !defined (__ACE_INLINE__)
#include "ace/Service_Object.i"
#endif /* __ACE_INLINE__ */
+#include "ace/Service_Types.h"
+#include "ace/DLL.h"
+
ACE_RCSID(ace, Service_Object, "$Id$")
ACE_ALLOC_HOOK_DEFINE(ACE_Service_Object)
@@ -20,11 +22,11 @@ ACE_Service_Type::dump (void) const
ACE_Service_Type::ACE_Service_Type (const ACE_TCHAR *n,
ACE_Service_Type_Impl *t,
- const ACE_SHLIB_HANDLE h,
+ ACE_DLL *dll,
int active)
: name_ (0),
type_ (t),
- handle_ (h),
+ dll_ (dll),
active_ (active),
fini_already_called_ (0)
{
@@ -38,8 +40,7 @@ ACE_Service_Type::~ACE_Service_Type (void)
this->fini ();
- if (this->handle_ != 0)
- ACE_OS::dlclose ((ACE_SHLIB_HANDLE) this->handle_);
+ delete dll_;
delete [] (ACE_TCHAR *) this->name_;
}