codegen: Free generic elements of glib collections
commita54f0dfe175b01a3ec46735829e3f95868041471
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Mar 2018 09:29:05 +0000 (20 10:29 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 20 Jun 2018 13:21:48 +0000 (20 15:21 +0200)
tree2f4fd335b846f1835f7430c77079707d1b013c34
parent504bef1017cbdabf81e4e48170465dd3cde00749
codegen: Free generic elements of glib collections

It needs to be possible to use parameters or fields/properties which hold
dup/free functions for a generic type in scope.

This required to make the destroy_func being a parameter with the benefit
of being able to use g_*_free_all directly and adding a _g_node_free_all
wrapper with a compatible signature.

https://bugzilla.gnome.org/show_bug.cgi?id=694765
codegen/valaccodebasemodule.vala
tests/Makefile.am
tests/generics/bug694765-1.vala [new file with mode: 0644]
tests/generics/bug694765-2.vala [new file with mode: 0644]
tests/generics/bug694765-3.vala [new file with mode: 0644]