g_strrstr, g_strrstr_len, g_strstr_len return ownership note is incorrect
These functions have always returned a pointer to a position in haystack
, even though their return type would imply otherwise.
The Return description appears unchanged in gstrfuncs.c, but in the actual documentation it ends up appending that it needs to be freed (based on the return type):
Type: gchar*
A pointer to the found occurrence, or NULL if not found.
The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.
Observed in 2.79.2 (Ubuntu 24.04) but it looks like docs.gtk.org documentation has this as well.
Thanks