From 71ccfadbe126b87e0c69fd8fbc11a8c9b5a1fb5c Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Fri, 5 Jul 2019 10:34:27 +0100 Subject: [PATCH] =?UTF-8?q?docs.c:=20Forward=20link=20from=20g=5Fauto*=20?= =?UTF-8?q?=E2=86=92=20G=5FDEFINE=5FAUTO*?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We said the type must support being cleaned up and will be cleaned up in an appropriate way, but in order to figure out how to do that, you had to jump forward in the documentation to the other macros. Just say them. --- glib/docs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glib/docs.c b/glib/docs.c index 60ca64c3c..89b1d5253 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -2215,6 +2215,8 @@ * * The variable is cleaned up in a way appropriate to its type when the * variable goes out of scope. The type must support this. + * The way to clean up the type must have been defined using one of the macros + * G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC() or G_DEFINE_AUTO_CLEANUP_FREE_FUNC(). * * This feature is only supported on GCC and clang. This macro is not * defined on other compilers and should not be used in programs that @@ -2269,6 +2271,8 @@ * * The variable is cleaned up in a way appropriate to its type when the * variable goes out of scope. The type must support this. + * The way to clean up the type must have been defined using the macro + * G_DEFINE_AUTOPTR_CLEANUP_FUNC(). * * This feature is only supported on GCC and clang. This macro is not * defined on other compilers and should not be used in programs that