• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From 1185a1304a88319b58359105f2c1038ae4d7edce Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
3Date: Tue, 6 Sep 2022 16:46:13 +0200
4Subject: [PATCH] gregex: Mark g_match_info_get_regex as transfer none
5
6Since it had no explicit annotation, g-i was defaulting to transfer-full
7while in this case the GRegex is owned by the GMatchInfo.
8---
9 glib/gregex.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/glib/gregex.c b/glib/gregex.c
13index 2eb9b858ea..219d9cee34 100644
14--- a/glib/gregex.c
15+++ b/glib/gregex.c
16@@ -912,7 +912,7 @@ enable_jit_with_match_options (GRegex   *regex,
17  * and must not be freed. Use g_regex_ref() if you need to keep it
18  * after you free @match_info object.
19  *
20- * Returns: #GRegex object used in @match_info
21+ * Returns: (transfer none): #GRegex object used in @match_info
22  *
23  * Since: 2.14
24  */
25--
26GitLab
27
28