[libsoup] soup_form_decode*: fix transfer annotation
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup_form_decode*: fix transfer annotation
- Date: Fri, 15 Jan 2016 23:36:45 +0000 (UTC)
commit 45cf9db7d46ff6ecabd6bbd4e7ae99cfefbc1626
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Fri Jan 15 23:08:56 2016 +0000
soup_form_decode*: fix transfer annotation
The correct transfer annotation to use here is container, as unreffing the
GHashTable will free its items.
https://bugzilla.gnome.org/show_bug.cgi?id=743966
libsoup/soup-form.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-form.c b/libsoup/soup-form.c
index 448c3c4..aa0974f 100644
--- a/libsoup/soup-form.c
+++ b/libsoup/soup-form.c
@@ -77,7 +77,7 @@ form_decode (char *part)
* Decodes @form, which is an urlencoded dataset as defined in the
* HTML 4.01 spec.
*
- * Return value: (element-type utf8 utf8) (transfer full): a hash
+ * Return value: (element-type utf8 utf8) (transfer container): a hash
* table containing the name/value pairs from @encoded_form, which you
* can free with g_hash_table_destroy().
**/
@@ -139,7 +139,7 @@ soup_form_decode (const char *encoded_form)
* need to decode it manually, using soup_multipart_new_from_message()
* and soup_multipart_get_part().
*
- * Return value: (nullable) (element-type utf8 utf8) (transfer full):
+ * Return value: (nullable) (element-type utf8 utf8) (transfer container):
* a hash table containing the name/value pairs (other than
* @file_control_name) from @msg, which you can free with
* g_hash_table_destroy(). On error, it will return %NULL.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]