From 1a781e128e1e5e8cb04dadba395124a95113d4f8 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 4 Jun 2014 17:51:51 -0400 Subject: local-alloc: Define cleanup functions for GKeyFile and GList See https://github.com/hughsie/libhif/pull/2 --- src/gsystem-local-alloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gsystem-local-alloc.h b/src/gsystem-local-alloc.h index 34db297..5e91752 100644 --- a/src/gsystem-local-alloc.h +++ b/src/gsystem-local-alloc.h @@ -46,8 +46,10 @@ G_BEGIN_DECLS GS_DEFINE_CLEANUP_FUNCTION0(GArray*, gs_local_array_unref, g_array_unref) GS_DEFINE_CLEANUP_FUNCTION0(GBytes*, gs_local_bytes_unref, g_bytes_unref) GS_DEFINE_CLEANUP_FUNCTION0(GChecksum*, gs_local_checksum_free, g_checksum_free) +GS_DEFINE_CLEANUP_FUNCTION0(GKeyFile*, gs_local_keyfile_unref, g_key_file_unref) GS_DEFINE_CLEANUP_FUNCTION0(GError*, gs_local_free_error, g_error_free) GS_DEFINE_CLEANUP_FUNCTION0(GHashTable*, gs_local_hashtable_unref, g_hash_table_unref) +GS_DEFINE_CLEANUP_FUNCTION(GList*, gs_local_free_list, g_list_free) GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref) GS_DEFINE_CLEANUP_FUNCTION0(GPtrArray*, gs_local_ptrarray_unref, g_ptr_array_unref) GS_DEFINE_CLEANUP_FUNCTION0(GVariant*, gs_local_variant_unref, g_variant_unref) -- cgit v1.2.1