[prev in list] [next in list] [prev in thread] [next in thread]
List: gtk
Subject: Re: dispose and finalize
From: Artur Galyamov <artur-pub () yandex ! ru>
Date: 2010-01-20 17:09:30
Message-ID: 3541264007370 () webmail30 ! yandex ! ru
[Download RAW message or body]
20.01.10, 17:56, "Martin KalbfuĆ" <ma.kalbfuss@web.de>:
> Hi,
> what's the difference between dispose and finalize? And which members
> have to be freed in which of these functions?
> Thanks
In dispose you should drop all references to other GObjects.
In finalize you free other data (char *, GArray *, etc.)
"dispose" can be invoked more than one time before "finalize".
See also [1], specifically last section.
[1] http://library.gnome.org/devel/gobject/stable/gobject-memory.html
--
Artur
_______________________________________________
gtk-list mailing list
gtk-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic