Add support for g_auto[s]list(Type)

Desktop / GNOME / GLib - Alexander Larsson [redhat.com] - 21 December 2017 15:12 EST

This lets you do g_autoptr style cleanup of GList that does deep freeing.

https://bugzilla.gnome.org/show_bug.cgi?id=791342

f49a93b20 Add support for g_auto[s]list(Type)
docs/reference/glib/glib-sections.txt | 2 ++
glib/docs.c | 56 +++++++++++++++++++++++++++++
glib/gmacros.h | 10 ++++++
glib/tests/autoptr.c | 67 +++++++++++++++++++++++++++++++++++
4 files changed, 135 insertions(+)

Upstream: git.gnome.org


  • Share