diff options
-rw-r--r-- | gsystem-local-alloc.c | 4 | ||||
-rw-r--r-- | gsystem-local-alloc.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gsystem-local-alloc.c b/gsystem-local-alloc.c index acac1a6..fa90654 100644 --- a/gsystem-local-alloc.c +++ b/gsystem-local-alloc.c @@ -108,9 +108,9 @@ gs_local_variant_iter_free (void *loc) } void -gs_local_variant_builder_free (void *loc) +gs_local_variant_builder_unref (void *loc) { - _gs_local_free(GVariantBuilder, g_variant_builder_free); + _gs_local_free(GVariantBuilder, g_variant_builder_unref); } void diff --git a/gsystem-local-alloc.h b/gsystem-local-alloc.h index 299b15e..9f855d2 100644 --- a/gsystem-local-alloc.h +++ b/gsystem-local-alloc.h @@ -34,7 +34,7 @@ void gs_local_free (void *loc); void gs_local_obj_unref (void *loc); void gs_local_variant_unref (void *loc); void gs_local_variant_iter_free (void *loc); -void gs_local_variant_builder_free (void *loc); +void gs_local_variant_builder_unref (void *loc); void gs_local_array_unref (void *loc); void gs_local_ptrarray_unref (void *loc); void gs_local_hashtable_unref (void *loc); @@ -76,10 +76,10 @@ void gs_local_checksum_free (void *loc); /** * gs_free_variant_builder: * - * Call g_variant_builder_free() on a variable location when it goes out of + * Call g_variant_builder_unref() on a variable location when it goes out of * scope. */ -#define gs_free_variant_builder __attribute__ ((cleanup(gs_local_variant_builder_free))) +#define gs_unref_variant_builder __attribute__ ((cleanup(gs_local_variant_builder_unref))) /** * gs_unref_array: |