diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c index 3a8c63d3c..e7dab857d 100644 --- a/glib/gvariant-parser.c +++ b/glib/gvariant-parser.c @@ -2346,7 +2346,8 @@ parse (TokenStream *stream, * with empty arrays). * * In the event that the parsing is successful, the resulting #GVariant - * is returned. + * is returned. It is never floating, and must be freed with + * g_variant_unref(). * * In case of any error, %NULL will be returned. If @error is non-%NULL * then it will be set to reflect the error that occurred. @@ -2354,7 +2355,7 @@ parse (TokenStream *stream, * Officially, the language understood by the parser is "any string * produced by g_variant_print()". * - * Returns: a reference to a #GVariant, or %NULL + * Returns: a non-floating reference to a #GVariant, or %NULL **/ GVariant * g_variant_parse (const GVariantType *type,