Re: [g-a-devel]at-spy-cspi reference counting



Michael Meeks wrote:
Hi David,

On Thu, 2003-12-04 at 15:44, David Bolter wrote:

Is there an implicit Accessible_ref on the accessible returned by AccessibleRelation_getTarget?


	Yes - any method that returns an Accessible * has to return a new
reference to it; otherwise it's impossible to manage lifecycle sensibly;
thus you have to unref them when you're done.


Also, what about Accessible_getRelationSet: is there an implicit AccessibleRelation_ref for each relation in the returned array?


	at-spi/cspi/spi_accessibe.c: 440 contains the answer to your question;
cspi is not complicated code; it should be easyish to find these things
out for yourself.

Even easy enough for me?!  ;-)

A goint point taken.

cheers,

D



	It does look like we could benefit from an
Accessible_RelationSet_free() method that did a deep free for you on
that lot. Why not knock up a quick patch to do that before the API
freeze bites :-)

	Regards,

		Michael.








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