Skip to content

glist: Clarify that g_list_free() and friends only free an entire list

Philip Withnall requested to merge pwithnall/glib:list-free-docs into master

They shouldn’t be used to free a list from part-way through, as that is confusing and will leave a dangling pointer from the previous list element.

Spotted by Gary Kramlich in !1653 (closed).

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Merge request reports

Loading