From 61aa1f7db086ae39148a6cebf457ead432af364f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Oct 2008 04:19:53 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20556422=20=E2=80=93=20g=5Ffile=5Fenumerato?= =?UTF-8?q?r=5Fnext=5Ffile:=20unclear=20whether=20return=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-16 Matthias Clasen Bug 556422 – g_file_enumerator_next_file: unclear whether return value needs to be freed * gfileenumerator.c (g_file_enumerate_next_file): Clarify the return value docs. Pointed out by Armin Burgmeier svn path=/trunk/; revision=7603 --- gio/ChangeLog | 8 ++++++++ gio/gfileenumerator.c | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gio/ChangeLog b/gio/ChangeLog index 719e97df7..da6906a5b 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,11 @@ +2008-10-16 Matthias Clasen + + Bug 556422 – g_file_enumerator_next_file: unclear whether return + value needs to be freed + + * gfileenumerator.c (g_file_enumerate_next_file): Clarify + the return value docs. Pointed out by Armin Burgmeier + 2008-10-14 Matthias Clasen Bug 556334 – Warning when building without selinux support diff --git a/gio/gfileenumerator.c b/gio/gfileenumerator.c index 07acc60c1..579215f0e 100644 --- a/gio/gfileenumerator.c +++ b/gio/gfileenumerator.c @@ -186,7 +186,8 @@ g_file_enumerator_init (GFileEnumerator *enumerator) * enumerator is at the end, %NULL will be returned and @error will * be unset. * - * Return value: A #GFileInfo or %NULL on error or end of enumerator + * Return value: A #GFileInfo or %NULL on error or end of enumerator. + * Free the returned object with g_object_unref() when no longer needed. **/ GFileInfo * g_file_enumerator_next_file (GFileEnumerator *enumerator,