mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Added note in g_slist_free about using *free_full to mirror GList docs
This commit is contained in:
parent
1a638926ff
commit
8530a3b029
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user