Re: The bug hunt continues: Bug found!



On Fri, 3 Dec 1999, Dietmar Maurer wrote:

> Just found the bug (I think so). Take a look at bonobo-skel.c line 5588:

> // This is the bug !?
> if(ev->_major == CORBA_NO_EXCEPTION) CORBA_Object_release(_ORBIT_retval, ev);

> Why does it release the ORBIT_retval?

Because when you return a value, you are giving up ownership of it to the
caller.

> It works if you remove that line.

Someone probably forgot to do CORBA_Object_duplicate() in the gnome-bonobo
get_ui_handler implementation.

There are probably more of these bugs around.
-- Elliot
Do not meddle in the affairs of dragons,
for you are crunchy and good with ketchup. 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]