diff options
Diffstat (limited to 'TAO/tao/ORB.i')
-rw-r--r-- | TAO/tao/ORB.i | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/tao/ORB.i b/TAO/tao/ORB.i index c6981d87b0c..61a9806684f 100644 --- a/TAO/tao/ORB.i +++ b/TAO/tao/ORB.i @@ -366,13 +366,13 @@ CORBA_ORB::_get_server_interceptor (CORBA_Environment &) ACE_INLINE CORBA::Boolean CORBA::is_nil (CORBA::ORB_ptr obj) { - return obj == 0; + return obj == CORBA_ORB::_nil (); } ACE_INLINE void CORBA::release (CORBA::ORB_ptr obj) { - if (obj) + if (!CORBA::is_nil (obj)) obj->_decr_refcnt (); } |