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.
This commit is contained in:
Marco Trevisan (Treviño) 2022-09-06 16:46:13 +02:00
parent df66951b96
commit 1185a1304a

View File

@ -912,7 +912,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
*/