summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-07-15 20:00:07 +0200
committerColin Walters <walters@verbum.org>2014-07-15 16:22:35 -0400
commitc7e143cc984998c5dd92d297b7772b5f8b1b3dbd (patch)
tree0d56be682379853fefcee3d520611532a450ba00
parent1a781e128e1e5e8cb04dadba395124a95113d4f8 (diff)
downloadlibgsystem-c7e143cc984998c5dd92d297b7772b5f8b1b3dbd.tar.gz
localalloc: add gs_free_list
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/gsystem-local-alloc.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gsystem-local-alloc.h b/src/gsystem-local-alloc.h
index 5e91752..ddc8ade 100644
--- a/src/gsystem-local-alloc.h
+++ b/src/gsystem-local-alloc.h
@@ -130,6 +130,13 @@ GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
#define gs_unref_hashtable __attribute__ ((cleanup(gs_local_hashtable_unref)))
/**
+ * gs_free_list:
+ *
+ * Call g_list_free() on a variable location when it goes out
+ * of scope.
+ */
+#define gs_free_list __attribute__ ((cleanup(gs_local_free_list)))
+
* gs_free_checksum:
*
* Call g_checksum_free() on a variable location when it goes out