diff options
Diffstat (limited to 'gsystem-local-alloc.h')
-rw-r--r-- | gsystem-local-alloc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gsystem-local-alloc.h b/gsystem-local-alloc.h index 71ff07d..4c63dcf 100644 --- a/gsystem-local-alloc.h +++ b/gsystem-local-alloc.h @@ -40,6 +40,7 @@ void gs_local_ptrarray_unref (void *loc); void gs_local_hashtable_unref (void *loc); void gs_local_checksum_free (void *loc); void gs_local_bytes_unref (void *loc); +void gs_local_strfreev (void *loc); /** * gs_free: @@ -129,6 +130,13 @@ void gs_local_bytes_unref (void *loc); */ #define gs_unref_bytes __attribute__ ((cleanup(gs_local_bytes_unref))) +/** + * gs_strfreev: + * + * Call g_strfreev() on a variable location when it goes out of scope. + */ +#define gs_strfreev __attribute__ ((cleanup(gs_local_strfreev))) + G_END_DECLS #endif |