Re: dispose and finalize
- From: Holger Berndt <berndth gmx de>
- To: Martin Kalbfuß <ma kalbfuss web de>
- Cc: Gtk+ <gtk-list gnome org>
- Subject: Re: dispose and finalize
- Date: Wed, 20 Jan 2010 17:44:52 +0100
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]