[glib/wip/3v1n0/regex-pcre2-flags-fixes: 4/11] gregex: Mark g_match_info_get_regex as transfer none
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/3v1n0/regex-pcre2-flags-fixes: 4/11] gregex: Mark g_match_info_get_regex as transfer none
- Date: Tue, 6 Sep 2022 20:17:53 +0000 (UTC)
commit 606ce68067dbf42a133b0c0cd3b72d32499f9650
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue Sep 6 16:46:13 2022 +0200
gregex: Mark g_match_info_get_regex as transfer none
Since it had no explicit annotation, g-i was defaulting to transfer-full
while in this case the GRegex is owned by the GMatchInfo.
glib/gregex.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gregex.c b/glib/gregex.c
index 73b6cfd394..a5e2d95764 100644
--- a/glib/gregex.c
+++ b/glib/gregex.c
@@ -922,7 +922,7 @@ enable_jit_with_match_options (GRegex *regex,
* and must not be freed. Use g_regex_ref() if you need to keep it
* after you free @match_info object.
*
- * Returns: #GRegex object used in @match_info
+ * Returns: (transfer none): #GRegex object used in @match_info
*
* Since: 2.14
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]