summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2015-11-06 09:57:30 -0500
committerMatthew Barnes <mbarnes@redhat.com>2015-11-06 09:57:30 -0500
commitc7da81208df4053774cb4b38adff8863ca0838f5 (patch)
treec99be0ecb976628416213ef6e81c00710d337e2d
parent7310bbdb58379fa4e6d7ec99aa89c2b069814335 (diff)
downloadlibglnx-c7da81208df4053774cb4b38adff8863ca0838f5.tar.gz
Backport g_autoptr support for GCancellable
-rw-r--r--glnx-backport-autocleanups.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glnx-backport-autocleanups.h b/glnx-backport-autocleanups.h
index f2bc483..271f5af 100644
--- a/glnx-backport-autocleanups.h
+++ b/glnx-backport-autocleanups.h
@@ -88,6 +88,7 @@ G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GVariantDict, g_variant_dict_clear)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GVariantType, g_variant_type_free)
/* Add GObject-based types add needed. */
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GCancellable, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GConverter, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GConverterOutputStream, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GDataInputStream, g_object_unref)