Comment 1 for bug 784808

Revision history for this message
JKL (jkl102001) wrote :

In the above post I expressed some doubt as to whether g_variant_parse returns a regular reference or floating reference. Indeed the documentation is not completely explicit on this point.

However, reading the source makes it clear that it is a non-floating reference, as I have claimed.

http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/glib2.0/oneiric/view/head:/glib/gvariant-parser.c

Note the call to g_variant_ref_sink.