From e64113bca04a195888fc7dd0cbff4a778974daaf Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 15 May 2018 15:36:41 +0100 Subject: [PATCH] gobject: Add g_autoptr() support for GTypeClass, GEnumClass, GFlagsClass Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=789968 --- gobject/gobject-autocleanups.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gobject/gobject-autocleanups.h b/gobject/gobject-autocleanups.h index cc353bf9a..1613857ec 100644 --- a/gobject/gobject-autocleanups.h +++ b/gobject/gobject-autocleanups.h @@ -22,7 +22,10 @@ #endif G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GEnumClass, g_type_class_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GFlagsClass, g_type_class_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GParamSpec, g_param_spec_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GTypeClass, g_type_class_unref) G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)