[omniORB] vety basinc BOA question
Ivan Ivanov
Ivan.Ivanov@trema.com
Fri, 15 Feb 2002 11:47:08 +0100
Hello everyone,
Very often one could see a code snippet containing the line:
my_implementation->_obj_is_ready (CORBA::BOA::getBOA ());
The getBOA() function returns a new reference (with duplicating BOA_ptr)
which is never released as far as I can understand it.
Wouldn't be this more appropriate:
CORBA::BOA_var boa = CORBA::BOA::getBOA ();
my_implementation ->_obj_is_ready (boa);
as the _var automatically will release the reference to the
CORBA::BOA object?
Is there a memory leak in the first case?
Thanks,
Ivan