GObject: Freeing memory of instance members?

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

 



Hi,

I've just started to use GObject, and I think I understand most of it by
now. There's still some questions remaining. Here's one:

I have an instance struct that has a pointer to a some data that's
dynamically allocated in a method. How can I free this memory when the
object is finalzed? Is this done automatically in g_object_unref() (when
refcounter is zero) ?

-Øystein

PS:
I see a pointer to a func in the info struct called base_finalize and
another called class_finalize, but these seems to be used for cleaning
up when I have base_init and class_init.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux