gtk_label_get_selection_bounds has misleading documentation
The gtk4's devel doc for gtk_label_get_selection_bounds()
says:
start int*
Return location for start of selection, as a character offset.
The argument will be set by the function.
The instance takes ownership of the data, and is responsible for freeing it.
end int*
Return location for end of selection, as a character offset.
The argument will be set by the function.
The instance takes ownership of the data, and is responsible for freeing it.
The misleading part here is The instance takes ownership of the data, and is responsible for freeing it.
How am I supposed to free the int
, when it's a stack-allocated memory?