[omniORB] CORBA Callback

Duncan Grisby dgrisby@uk.research.att.com
Thu, 24 Feb 2000 15:55:09 +0000


On Thursday 24 February, Stefan Seefeld wrote:

> >   channel->addListener(listener->_this());

> Given that _this() increments the ref count, shouldn't the returned
> pointer be either explicitely released, or in case of a temporary like
> this, assigned to a _var to automatize the ref decrement ?

Yes, you are right. You do need to release the reference created by
_this(). I've been using Python too much...

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --