Verify leaking memory for GLib arrays
GLib has several different array implementations:
Those array types are already used inside the generated code but are treated like regular arrays. As those arrays can increase in size they must be memory managed / freed.
Verify if memory is leaked or the C# side of things needs to free the array. If so handle the memory of those kinds of array, probably through some dedicated class per array type.
The api of this arrays is already generated automatically. The code must use the generated types.
One problem with GPtrArray is that the ownership semantics of the array contents seems to depend on whether an element_free_func has been set, even if we get the array from a function with (transfer full). Unfortunately we have no way of knowing if an element_free_func has been set (as far as I can see). Here is a related issue on the gir repo.