From: Matthias Clasen Date: Thu, 16 Oct 2008 04:19:53 +0000 (+0000) Subject: Bug 556422 – g_file_enumerator_next_file: unclear whether return value X-Git-Tag: GLIB_2_19_0~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61aa1f7db086ae39148a6cebf457ead432af364f;p=platform%2Fupstream%2Fglib.git Bug 556422 – g_file_enumerator_next_file: unclear whether return value 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 --- diff --git a/gio/ChangeLog b/gio/ChangeLog index 719e97d..da6906a 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 07acc60..579215f 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,