summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2020-01-22 12:08:35 +0100
committerCorentin Noël <corentin.noel@collabora.com>2020-01-22 12:08:35 +0100
commitd10c00a25c3f5c8dd3b0e4985877aa3bd9a96f26 (patch)
tree6b363f58f211a57abd7c783a42f26c4f803a427d
parent21eabc012016f87133b0ac77d20fa7f9174ed0e0 (diff)
downloadevolution-data-server-d10c00a25c3f5c8dd3b0e4985877aa3bd9a96f26.tar.gz
CamelHeaderParam: Specify the transfer annotation for camel_header_param
This allows us to not change the API to const gchar* yet while preventing possible double-free of the returned value.
-rw-r--r--src/camel/camel-mime-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camel/camel-mime-utils.c b/src/camel/camel-mime-utils.c
index 9e09f386f..3394707e2 100644
--- a/src/camel/camel-mime-utils.c
+++ b/src/camel/camel-mime-utils.c
@@ -2329,7 +2329,7 @@ rfc2184_decode (const gchar *in,
*
* Searches @params for a param named @name and gets the value.
*
- * Returns: the value of the @name param
+ * Returns: (transfer none): the value of the @name param
**/
gchar *
camel_header_param (struct _camel_header_param *params,