[omniORB] [bug][patch] corba_wrappers.h - 'counter-leak' on BOA pointers

Tomasz Bech tbech at polbox.com
Tue Jul 29 13:03:37 BST 2003


Following line (corba_wrappers.h):
#define WRAPPED_DISPOSE(objref)      CORBA::BOA::getBOA()->dispose(objref)
causes the increase of pointer on boa, so boa will be never released 
after boa->destroy().
It should be:
#define WRAPPED_DISPOSE(objref)      
CORBA::BOA_var(CORBA::BOA::getBOA())->dispose(objref)

Also some examples and in docs (omniorb2.pdf) there are plenty of code like:
CORBA:BOA_ptr = BOA_Init (.........)
it should be BOA_var.

It that correct?!?
    Tomasz




More information about the omniORB-list mailing list