Best way to free a gslist
- From: antonio giulio <antongiulio05 gmail com>
- To: gtk-list gnome org
- Subject: Best way to free a gslist
- Date: Thu, 10 Nov 2005 19:46:20 +0000
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]