That is an interesting function, as the GList argument has [transfer: full] [element-type gchar*].

I wonder how I have to allocate the list elements (strings) in a way that gst may deallocate them?

My impression is that most GList arguments are of type transfer:none which makes handling easy, the bindings code releases the GList and the data elements when necessary after the function call. An exception is gtk_container_get_focus_chain() with transfer:container for GList, but that function is deprecated so I will not care at all.

Everything that is transfer full has to be allocated / freed by the corresponding memory management functions of the type, or if it doesn’t have any (like in this case) by the normal GLib allocator (g_malloc() / g_free()).

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.