Re: dispose and finalize



On Wed, 20 Jan 2010 18:20:39 +0100 Martin Kalbfuß wrote:

> So if I have a Garray member, I call g_array_unref in finalize,
> because it isn't a child of GObject. Correct?

Actually, I would decrement the reference count of all reference
counted objects in dispose. Speaking of GObject is probably an
over-simplification. I am not sure if that's strictly required, but it
sounds safer anyways.

Holger


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