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? _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list