[evolution-data-server/gnome-3-38] M!46 - camel-internet-address: Annotate methods to fetch strings as transfer none
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-38] M!46 - camel-internet-address: Annotate methods to fetch strings as transfer none
- Date: Thu, 15 Oct 2020 10:34:52 +0000 (UTC)
commit 5faeba2687593311517679be6cea8bd70d9163de
Author: Corentin Noël <corentin noel collabora com>
Date: Wed Oct 14 20:09:04 2020 +0200
M!46 - camel-internet-address: Annotate methods to fetch strings as transfer none
The (out) annotation defaults to (transfer full), here the string lifetime are
linked to the InternetAddress object.
Closes https://gitlab.gnome.org/GNOME/evolution-data-server/-/merge_requests/46
src/camel/camel-internet-address.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-internet-address.c b/src/camel/camel-internet-address.c
index e91f8b306..790730738 100644
--- a/src/camel/camel-internet-address.c
+++ b/src/camel/camel-internet-address.c
@@ -323,8 +323,8 @@ camel_internet_address_add (CamelInternetAddress *addr,
* camel_internet_address_get:
* @addr: a #CamelInternetAddress object
* @index: address's array index
- * @namep: (out) (nullable): holder for the returned name, or %NULL, if not required.
- * @addressp: (out) (nullable): holder for the returned address, or %NULL, if not required.
+ * @namep: (out) (optional) (nullable) (transfer none): holder for the returned name, or %NULL, if not
required.
+ * @addressp: (out) (optional) (nullable) (transfer none): holder for the returned address, or %NULL, if not
required.
*
* Get the address at @index.
*
@@ -355,7 +355,7 @@ camel_internet_address_get (CamelInternetAddress *addr,
* camel_internet_address_find_name:
* @addr: a #CamelInternetAddress object
* @name: name to lookup
- * @addressp: (out) (nullable): holder for address part, or %NULL, if not required.
+ * @addressp: (out) (optional) (nullable) (transfer none): holder for address part, or %NULL, if not
required.
*
* Find address by real name.
*
@@ -470,7 +470,7 @@ camel_internet_address_ensure_ascii_domains (CamelInternetAddress *addr)
* camel_internet_address_find_address:
* @addr: a #CamelInternetAddress object
* @address: address to lookup
- * @namep: (out) (nullable): holder for the matching name, or %NULL, if not required.
+ * @namep: (out) (optional) (nullable) (transfer none): holder for the matching name, or %NULL, if not
required.
*
* Find an address by address.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]