20.01.10, 17:56, "Martin Kalbfuß" <[email protected]>:

> 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
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to