Merge branch '811-content-type-docs' into 'master'

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

Closes #811

See merge request GNOME/glib!84
This commit is contained in:
Christoph Reiter
2018-06-12 08:52:56 +00:00

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. * Gets the mime type for the content type, if one is registered.
* *
* Returns: (nullable): the registered mime type for the given @type, * Returns: (nullable) (transfer full): the registered mime type for the
* or %NULL if unknown. * given @type, or %NULL if unknown; free with g_free().
*/ */
char * char *
g_content_type_get_mime_type (const char *type) g_content_type_get_mime_type (const char *type)