Re: BonoboControl refcounting
- From: Michael Meeks <michael ximian com>
- To: Ricardo Fernández Pascual <rfp1 ono com>
- Cc: bonobo <gnome-components-list gnome org>
- Subject: Re: BonoboControl refcounting
- Date: 05 Aug 2002 08:37:29 +0100
Hi Ricardo,
On Fri, 2002-08-02 at 12:20, Ricardo Fernández Pascual wrote:
> I was trying to figure why galeon was leaking widgets in its toolbar
> code, and I think that I've found a problem with the way BonoboControl
> refcounting is done:
...
> In bonobo_control_init, create plug is called ...
the ref counting is relatively complicated between BonoboControl and
BonoboPlug, see libbonoboui/doc/control.txt. I forget the precise
details, but I'm hesitant to go chasing in there.
> If I'm wrong, how am I supposed to manage the life cycle of bonobo
> controls?
Are you certain that you unref your BonoboControl after adding it to
the UIContainer:
bonobo_ui_component_object_set (
uic, "/foo", BONOBO_OBJREF (ctl), NULL);
!!! bonobo_object_unref (ctl);
HTH,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]