Added note in g_slist_free about using *free_full to mirror GList docs

This commit is contained in:
Chris Kühl 2010-12-06 00:34:43 +01:00
parent 1a638926ff
commit 8530a3b029

View File

@ -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.
*
* <note><para>
* If list elements contain dynamically-allocated memory,
* you should either use g_slist_free_full() or free them manually
* first.
* </para></note>
*/
void
g_slist_free (GSList *list)