GNOME Bugzilla – Bug 744570
GString is missing (transfer none) annotations on many of its methods
Last modified: 2016-02-02 16:40:16 UTC
Typical example is g_string_append(), which returns itself as an argument. Without the annotation, GI assigns (transfer full) and this causes binding crash because of attempting to free the string instance multiple times. Seems that every method of gstring.c which has "Returns: @string" would be benefitting from this. Originally reported as: https://github.com/pavouk/lgi/issues/102
A patch would be appreciated.
Created attachment 320255 [details] [review] gstring: Explictly annotate return-values with (transfer none/full)
Review of attachment 320255 [details] [review]: Looks good.
Attachment 320255 [details] pushed as 927a4ed - gstring: Explictly annotate return-values with (transfer none/full)