Best way to free a gslist

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

 



Hi,

what is the best way to free completely a generic gslist?

Example: a list of n elements, with a single element generated from a
struct like this:

struct
{
gchar *data1;
gchar *data2;
guint a;
gboolean b;
...
double z;
}

Using GAllocator? or using g_free() for every element (and sub-element
like gchar* for example). Eventually can you show me a sample code?

Thanks,
Giulio
_______________________________________________

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