From c7e143cc984998c5dd92d297b7772b5f8b1b3dbd Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 15 Jul 2014 20:00:07 +0200 Subject: localalloc: add gs_free_list Signed-off-by: Thomas Haller --- src/gsystem-local-alloc.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.1