From 3d5ce40624561dc2f4779c5f9fc7f8b7d745aecd Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Thu, 29 Apr 2010 19:27:56 -0500 Subject: [PATCH] [gvariant-varargs.xml] Fix some outdated documentation --- docs/reference/glib/gvariant-varargs.xml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/docs/reference/glib/gvariant-varargs.xml b/docs/reference/glib/gvariant-varargs.xml index 702235c..2eb945f 100644 --- a/docs/reference/glib/gvariant-varargs.xml +++ b/docs/reference/glib/gvariant-varargs.xml @@ -622,7 +622,7 @@ y = g_variant_get_variant (x);]]> (GVariantIter **)). A new heap-allocated iterator is created and returned, initialised for iterating over the elements of the array. This iterator should be freed when you are done with it, using - g_variant_iter_unref(). + g_variant_iter_free(). NULL may also be given to indicate that the value of the array should be ignored. @@ -633,12 +633,13 @@ y = g_variant_get_variant (x);]]> + g_print ("%s\n", str); + g_variant_iter_free (iter); +} + +g_variant_unref (value);]]> @@ -814,7 +817,7 @@ value2 = g_variant_new ("()"); -- 2.7.4