summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-06-04 17:51:51 -0400
committerColin Walters <walters@verbum.org>2014-06-04 17:51:51 -0400
commit1a781e128e1e5e8cb04dadba395124a95113d4f8 (patch)
treeb1df123cf7136169d674d1f4ddee4365917c76a2
parent8b726cd97bbaa9f7ce57ddbe0e16e96176761c21 (diff)
downloadlibgsystem-1a781e128e1e5e8cb04dadba395124a95113d4f8.tar.gz
local-alloc: Define cleanup functions for GKeyFile and GList
See https://github.com/hughsie/libhif/pull/2
-rw-r--r--src/gsystem-local-alloc.h2
1 files changed, 2 insertions, 0 deletions
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)