Re: bonobo_object_add_interface
- From: Michael Meeks <michael ximian com>
- To: Rodrigo Moya <rodrigo gnome-db org>
- Cc: <gnome-components-list gnome org>
- Subject: Re: bonobo_object_add_interface
- Date: Sun, 28 Oct 2001 19:02:38 -0500 (EST)
Hi Rodrigo,
On 28 Oct 2001, Rodrigo Moya wrote:
> I'm trying to fix a crash when bonobo_object_unref'ing a BonoboObject
> that has been added to another BonoboObject via
> bonobo_object_add_interface.
The reference count is for the aggregate. When you add_interface
the ref counts are fused by ref_new = ref_a + ref_b - 1, commonly a ref of
1.
> And, although I've been looking at the Bonobo sources, I still don't
> understand if this is correct or not. That is, can I unref the
> aggregated object, or will the object to which it was aggregated take
> care of unrefing it?
Unref the aggregate.
Regards,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]