[glib/wip/tintou/autoptr-right-function] doc: Use the right g_autoptr function when using an auxiliary function



commit 9e2d96395916fc507049485a1d686121d67c8146
Author: Corentin Noël <corentin elementary io>
Date:   Wed Mar 20 14:11:52 2019 +0100

    doc: Use the right g_autoptr function when using an auxiliary function

 glib/garcbox.c | 2 +-
 glib/grcbox.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/garcbox.c b/glib/garcbox.c
index 128d62d5c..49b62ccb8 100644
--- a/glib/garcbox.c
+++ b/glib/garcbox.c
@@ -152,7 +152,7 @@
  *   g_atomic_rc_box_release_full (data, (GDestroyNotify) my_data_struct_clear);
  * }
  *
- * G_DEFINE_AUTOPTR_CLEANUP_FUNC (MyDataStruct, my_data_struct_clear)
+ * G_DEFINE_AUTOPTR_CLEANUP_FUNC (MyDataStruct, my_data_struct_release)
  * ]|
  *
  * Since: 2.58.
diff --git a/glib/grcbox.c b/glib/grcbox.c
index 7a9a6f6d2..22a373b15 100644
--- a/glib/grcbox.c
+++ b/glib/grcbox.c
@@ -156,7 +156,7 @@
  *   g_rc_box_release_full (data, (GDestroyNotify) my_data_struct_clear);
  * }
  *
- * G_DEFINE_AUTOPTR_CLEANUP_FUNC (MyDataStruct, my_data_struct_clear)
+ * G_DEFINE_AUTOPTR_CLEANUP_FUNC (MyDataStruct, my_data_struct_release)
  * ]|
  *
  * Since: 2.58.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]