[glib: 1/2] docs: Add (transfer full) annotation to g_content_type_get_mime_type()



commit 6775fe2555e337f4435d579a301155c807375f55
Author: Philip Withnall <withnall endlessm com>
Date:   Fri Jun 8 14:05:40 2018 +0100

    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

 gio/gcontenttype.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gcontenttype.c b/gio/gcontenttype.c
index af8ef44c6..57249d94e 100644
--- a/gio/gcontenttype.c
+++ b/gio/gcontenttype.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]