From c7da81208df4053774cb4b38adff8863ca0838f5 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 6 Nov 2015 09:57:30 -0500 Subject: [PATCH] Backport g_autoptr support for GCancellable --- glnx-backport-autocleanups.h | 1 + 1 file changed, 1 insertion(+) diff --git a/glnx-backport-autocleanups.h b/glnx-backport-autocleanups.h index f2bc4836..271f5af9 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)