Re: GList
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: Tristan Sloughter <kungfooguru gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GList
- Date: Thu, 18 Aug 2005 09:56:10 +0200
On Thu, Aug 18, 2005 at 12:52:45AM -0500, Tristan Sloughter wrote:
I am using GLists and want to make sure I am freeing all the memory, and
not twice or course.
There are three possible functions for removing an element from the list:
g_list_remove (GList *list, gconstpointer data);
g_list_remove_link (GList *list, GList *llink);
g_list_delete_link (GList *list, GList *link_);
And while their names are confusing a bit, because the only
difference between g_list_remove() and g_list_delete() is
that the latter finds the item to remove by its data while
g_list_remove_link() is different, their API documentation
is quite clear.
So, I want to be sure that /gpointer data/ is freed
You have to free it yourself. No GList function frees the
data field.
Yeti
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]