From 651fa00c12b8b3a1bf1c9a53396ed0cf8863c096 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 26 Dec 2014 20:48:55 +0000 Subject: [PATCH] Fix documentation that incorrectly says a return value should be freed The gst_discoverer_info_get_missing_elements_installer_details() documentation and annotation says that the return value should be freed with g_strfreev(), but actually it's owned by the GstDiscovereInfo object and should definitely not get freed by the caller as well. https://bugzilla.gnome.org/show_bug.cgi?id=742006 --- gst-libs/gst/pbutils/gstdiscoverer-types.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c index 9cda78799c..1d38a5cb1b 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer-types.c +++ b/gst-libs/gst/pbutils/gstdiscoverer-types.c @@ -1085,9 +1085,10 @@ DISCOVERER_INFO_ACCESSOR_CODE (toc, const GstToc *, NULL); * * Get the installer details for missing elements * - * Returns: (transfer full) (array zero-terminated=1): An array of strings + * Returns: (transfer none) (array zero-terminated=1): An array of strings * containing informations about how to install the various missing elements - * for @info to be usable. Free with g_strfreev(). + * for @info to be usable. If you wish to use the strings after the life-time + * of @info, you will need to copy them. * * Since: 1.4 */