diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2014-12-26 20:48:55 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-06-10 19:27:23 +0100 |
commit | 8a29abe8f2c58606df3232deae6993749c12477d (patch) | |
tree | a70ce42c7847e25cd9758708eb59f4921e6db1c6 | |
parent | ec4f2fa5dbd8a00e82ec8438796c3df916235208 (diff) |
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
-rw-r--r-- | gst-libs/gst/pbutils/gstdiscoverer-types.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/pbutils/gstdiscoverer-types.c b/gst-libs/gst/pbutils/gstdiscoverer-types.c index 9cda78799..1d38a5cb1 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 */ |