[glib] gobject: add autoptr support for GClosure
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject: add autoptr support for GClosure
- Date: Wed, 16 Aug 2017 13:19:44 +0000 (UTC)
commit 00f5d2ffa2aaa6423176bdd48db777b47de8735a
Author: Ernestas Kulik <ernestask gnome org>
Date: Wed Aug 16 14:19:30 2017 +0300
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
gobject/gobject-autocleanups.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gobject-autocleanups.h b/gobject/gobject-autocleanups.h
index 57654e4..8aeda2e 100644
--- a/gobject/gobject-autocleanups.h
+++ b/gobject/gobject-autocleanups.h
@@ -21,6 +21,7 @@
#error "Only <glib-object.h> can be included directly."
#endif
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GClosure, g_closure_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GObject, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GInitiallyUnowned, g_object_unref)
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC(GValue, g_value_unset)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]