summaryrefslogtreecommitdiff
path: root/TAO/tao/Object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Object.cpp')
-rw-r--r--TAO/tao/Object.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/TAO/tao/Object.cpp b/TAO/tao/Object.cpp
index a4bbfc1fd80..d1e1ea7ce67 100644
--- a/TAO/tao/Object.cpp
+++ b/TAO/tao/Object.cpp
@@ -11,6 +11,7 @@
#include "tao/Servant_Base.h"
#include "tao/Request.h"
#include "tao/varout.h"
+#include "tao/GIOP.h"
#include "tao/ORB_Core.h"
#include "tao/Invocation.h"
#include "tao/Connector_Registry.h"
@@ -20,7 +21,6 @@
#include "tao/InterfaceC.h"
#endif /* TAO_HAS_INTERFACE_REPOSITORY == 1 */
-
#include "ace/Auto_Ptr.h"
#if !defined (__ACE_INLINE__)
@@ -49,6 +49,13 @@ CORBA_Object::CORBA_Object (TAO_Stub *protocol_proxy,
// implicitly takes a reference.
}
+void
+CORBA_Object::_tao_any_destructor (void *x)
+{
+ CORBA_Object_ptr tmp = ACE_static_cast(CORBA_Object_ptr,x);
+ CORBA::release (tmp);
+}
+
// IS_A ... ask the object if it's an instance of the type whose
// logical type ID is passed as a parameter.