gstring: Mark g_string_free() as taking (transfer full) input

This is unusual, but the correct annotation for a free() function.

https://bugzilla.gnome.org/show_bug.cgi?id=742903
This commit is contained in:
Philip Withnall 2015-01-14 10:44:12 +00:00
parent 4cad3f5e1b
commit b77fe970db

View File

@ -195,7 +195,7 @@ g_string_new_len (const gchar *init,
/**
* g_string_free:
* @string: a #GString
* @string: (transfer full): a #GString
* @free_segment: if %TRUE, the actual character data is freed as well
*
* Frees the memory allocated for the #GString.