mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-18 22:58:54 +02:00
gobject: add autoptr support for GClosure
This commit defines a g_autoptr() cleanup function for use with GClosure. https://bugzilla.gnome.org/show_bug.cgi?id=786360
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
#error "Only <glib-object.h> can be included directly."
|
#error "Only <glib-object.h> can be included directly."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref)
|
||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref)
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref)
|
||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref)
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref)
|
||||||
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
|
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
|
||||||
|
Reference in New Issue
Block a user