]> git.ipfire.org Git - thirdparty/vala.git/commit
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 14 Oct 2021 17:44:55 +0000 (19:44 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 19 Oct 2021 07:39:50 +0000 (09:39 +0200)
commitcd0fa00b18f0ea685710ccb40887343f645fc67c
tree8bc32e8f6ce0d189ad0782dbd26a895c4cdda44f
parent97f0ff85f1b155c143ed561f33d87c2157b85be6
codegen: Actually free data when using "remove(_all)" on GLib.Queue/(S)List

When using e.g. GLib.List.remove() there is no context/feedback whether an
item was removed or needed manual free'ing.

Replace such calls with custom wrappers where items required free'ing if
they were found.

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1238
codegen/valaccodemethodcallmodule.vala
tests/Makefile.am
tests/basic-types/glists_remove.vala [new file with mode: 0644]
vapi/glib-2.0.vapi