diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-05-15 15:36:41 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-05-15 15:38:33 +0100 |
commit | e64113bca04a195888fc7dd0cbff4a778974daaf (patch) | |
tree | bed2cc0d5fb7eaaa79557c1d00886d9b5d4ec00d /gobject | |
parent | cdfc79aae9d4c123ab15fea9cf1e4429f15aba66 (diff) | |
download | glib-e64113bca04a195888fc7dd0cbff4a778974daaf.tar.gz |
gobject: Add g_autoptr() support for GTypeClass, GEnumClass, GFlagsClass
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://bugzilla.gnome.org/show_bug.cgi?id=789968
Diffstat (limited to 'gobject')
-rw-r--r-- | gobject/gobject-autocleanups.h | 3 |
1 files changed, 3 insertions, 0 deletions
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) |