docs: Add (transfer full) annotation to g_content_type_get_mime_type()

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://gitlab.gnome.org/GNOME/glib/issues/811
This commit is contained in:
Philip Withnall 2018-06-08 14:05:40 +01:00
parent e1eaea3eea
commit 6775fe2555

View File

@ -405,8 +405,8 @@ g_content_type_get_description (const gchar *type)
*
* Gets the mime type for the content type, if one is registered.
*
* Returns: (nullable): the registered mime type for the given @type,
* or %NULL if unknown.
* Returns: (nullable) (transfer full): the registered mime type for the
* given @type, or %NULL if unknown; free with g_free().
*/
char *
g_content_type_get_mime_type (const char *type)