From 8530a3b029b7f691284d74e6e0c7883ba4a14725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20K=C3=BChl?= Date: Mon, 6 Dec 2010 00:34:43 +0100 Subject: [PATCH] Added note in g_slist_free about using *free_full to mirror GList docs --- glib/gslist.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/glib/gslist.c b/glib/gslist.c index f6581a8fa..f8e7dcdc7 100644 --- a/glib/gslist.c +++ b/glib/gslist.c @@ -159,6 +159,12 @@ g_slist_alloc (void) * * Frees all of the memory used by a #GSList. * The freed elements are returned to the slice allocator. + * + * + * If list elements contain dynamically-allocated memory, + * you should either use g_slist_free_full() or free them manually + * first. + * */ void g_slist_free (GSList *list)